Spring bean creation fails when statefull ejb created in other component

Hi All,
We have two components A and B. A creates stateful ejb as well calls B.
B inturn loads the beans using spring. While component B is trying to create the beans the following error is coming:
Error creating bean with name 'dataSource' defined in file ....
Invocation of init method failed; nested exception is java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
This happens only when A is using stateful beans.
when the flow uses A's stateless beans this is working fine.
For stateful beans, we are setting the Initialcontext. Has anyone faced this issue.
Env: Weblogic 10.3.2
Thanks and Regards
Veeramani

Hi All,
We have two components A and B. A creates stateful ejb as well calls B.
B inturn loads the beans using spring. While component B is trying to create the beans the following error is coming:
Error creating bean with name 'dataSource' defined in file ....
Invocation of init method failed; nested exception is java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
This happens only when A is using stateful beans.
when the flow uses A's stateless beans this is working fine.
For stateful beans, we are setting the Initialcontext. Has anyone faced this issue.
Env: Weblogic 10.3.2
Thanks and Regards
Veeramani

Similar Messages

  • Error when calling ejb.create() call

    Hi Folks,
    I am trying to create a simple CMP bean with J2EE1.4 but when I call ejb.create I get the following exception :-
    Exception in thread "main" java.rmi.ServerException: RemoteException occurred in
    server thread; nested exception is:
    java.rmi.RemoteException
    at com.sun.corba.se.internal.iiop.ShutdownUtilDelegate.mapSystemExceptio
    n(Unknown Source)
    at javax.rmi.CORBA.Util.mapSystemException(Unknown Source)
    at com.titan.customer._CustomerHomeRemote_Stub.create(Unknown Source)
    at Client.main(Client.java:20)
    Caused by: java.rmi.RemoteException
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.ja
    va:195)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:73
    9)
    at com.titan.customer.CustomerBean_986018080_ConcreteImpl_RemoteHomeImpl
    .create(CustomerBean_986018080_ConcreteImpl_RemoteHomeImpl.java:38)
    at com.titan.customer._CustomerBean_986018080_ConcreteImpl_RemoteHomeImp
    l_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
    tchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispa
    tch(CorbaServerRequestDispatcherImpl.java:191)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    Request(CorbaMessageMediatorImpl.java:1655)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    (CorbaMessageMediatorImpl.java:1514)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(C
    orbaMessageMediatorImpl.java:896)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.call
    back(RequestMessage_1_2.java:172)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest
    (CorbaMessageMediatorImpl.java:668)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatc
    h(SocketOrChannelConnectionImpl.java:352)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.read(So
    cketOrChannelConnectionImpl.java:261)
    at com.sun.corba.ee.impl.transport.ReaderThreadImpl.doWork(ReaderThreadI
    mpl.java:73)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.
    run(ThreadPoolImpl.java:382)
    Bean code :-
    package com.titan.customer;
    import javax.ejb.EntityContext;
    public abstract class CustomerBean implements javax.ejb.EntityBean {
    public Integer ejbCreate(Integer id) {
    setId(id);
    return id;
    public void ejbPostCreate() {
    //abstract methods
    public abstract Integer getId();
    public abstract void setId(Integer Id);
    public abstract String getLastName();
    public abstract void setLastName(String lastName );
    public abstract String getFirstName();
    public abstract void setFirstName(String firstName);
    public void setEntityContext(EntityContext ec) {}
    public void unsetEntityContext() {}
    public void ejbLoad() {}
    public void ejbStore() {}
    public void ejbActivate() {}
    public void ejbPassivate() {}
    public void ejbRemove() {}
    ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
    <display-name>CustomerBean</display-name>
    <enterprise-beans>
    <entity>
    <ejb-name>CustomerBean</ejb-name>
    <home>com.titan.customer.CustomerHomeRemote</home>
    <remote>com.titan.customer.CustomerRemote</remote>
    <ejb-class>com.titan.customer.CustomerBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>false</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>CustomerBean</abstract-schema-name>
    <cmp-field>
    <description>no description</description>
    <field-name>firstName</field-name>
    </cmp-field>
    <cmp-field>
    <description>no description</description>
    <field-name>id</field-name>
    </cmp-field>
    <cmp-field>
    <description>no description</description>
    <field-name>lastName</field-name>
    </cmp-field>
    <primkey-field>id</primkey-field>
    <security-identity>
    <use-caller-identity/>
    </security-identity>
    </entity>
    </enterprise-beans>
    </ejb-jar>
    sun cmp mapping
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-cmp-mappings PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 OR Mapping //EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-cmp-mapping.dtd">
    <sun-cmp-mappings>
    <sun-cmp-mapping>
    <schema>CustomerBean_jar</schema>
    <entity-mapping>
    <ejb-name>CustomerBean</ejb-name>
    <table-name>CUSTOMERBEAN</table-name>
    <cmp-field-mapping>
    <field-name>firstName</field-name>
    <column-name>CUSTOMERBEAN.FIRSTNAME</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>id</field-name>
    <column-name>CUSTOMERBEAN.ID</column-name>
    </cmp-field-mapping>
    <cmp-field-mapping>
    <field-name>lastName</field-name>
    <column-name>CUSTOMERBEAN.LASTNAME</column-name>
    </cmp-field-mapping>
    </entity-mapping>
    </sun-cmp-mapping>
    </sun-cmp-mappings>
    sun-ejb-jar.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE sun-ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 8.0 EJB 2.1//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-ejb-jar_2_1-0.dtd">
    <sun-ejb-jar>
    <enterprise-beans>
    <name>CustomerBean</name>
    <unique-id>579688304</unique-id>
    <ejb>
    <ejb-name>CustomerBean</ejb-name>
    <jndi-name>CustomerBean</jndi-name>
    </ejb>
    <pm-descriptors/>
    <cmp-resource>
    <jndi-name>jdbc/Vineeth</jndi-name>
    <create-tables-at-deploy>true</create-tables-at-deploy>
    <drop-tables-at-undeploy>true</drop-tables-at-undeploy>
    <schema-generator-properties>
    <property>
    <name>use-unique-table-names</name>
    <value>true</value>
    </property>
    <property>
    <name>java-to-database</name>
    <value>true</value>
    </property>
    </schema-generator-properties>
    </cmp-resource>
    </enterprise-beans>
    </sun-ejb-jar>
    Can someone please help me out with this...this is a bit urgent..
    Thanks

    It seems that u need a ejbPostCreate with the same parameters as ejbCreate:
    public Integer ejbCreate(Integer id) {
    setId(id);
    return id;
    public void ejbPostCreate(Integer id) {
    }

  • Build failed when trying to create a custom Android viewer

    I am experiencing the same issue, I get the : 'build failed. try again later' without any further information, when trying to create a custom viewer for android. Is this caused by server overloads or are there some things to check?
    Any help is appreciated! Thank you

    hey Bob,
    I did not before as I was assigned a mac that had everything running (untill now ), but to be sure I followed the steps just now using the keytool in terminal but looks like this is not making any differance.
    also, I can see the previous apps listed showing the download apk option, I have not been prompted for a certificate yet, where in iOS apps you are asked for it on save before the build starts and when you download the zip again if I'm not mistaking.
    Right now I always get the build faild error, try again later when I save the last step in the viewer creation process.

  • Build failed when use EJB Model

    Hi experts.
    I have one eb dynpro DC that contains a model type enterprise java beans.
    When i apply template "Service Controller" in component controller and after deploy i get the follow error in Build log:
    [javac] Compiling 26 source files to D:SAPWorkspacesSAPEHPWorkspace.jdi4     E7D65AC4087E200E11A14DD40E7DE510classes
         [javac] An exception has occurred in the compiler (1.5.0_17). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
         [javac] com.sun.tools.javac.code.Symbol$CompletionFailure: file javaxxml indannotation.class not found
    Error: D:SAPWorkspacesSAPEHPWorkspace.jdi4     2E7D65AC4087E200E11A14DD40E7DE510defaultlogs uild.xml:256: Compile failed; see the compiler error output for details.
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    Can someone help me about that?
    i use NetWeaver EHP1 7.1 SP04.
    Best Regards
    Marcos Brandã

    Hi
    I have developed a CAF application.
    In my web dynpro i created a EJB Model from the Application Service of this CAF. The ear dependencies is ok to CAF.
    After that i made an apply template for Service Controller in my Web Dynpro component controller.
    When i build the component the errors occurs.
    I think this could be an error of my java version. I use 1.5_17. I reinstalled that version and dont work.
    I installed version ..5_22 and don't work. Then i installed version 6, and works. It's strange, because never happened this before.
    I did the same other times and always work. But now i have this error.
    I have alreday reinstalled the NWDS and change the workspace too. But don't work.
    Regards
    Marcos.

  • Mutiplexing fails when trying to create mpeg!

    Gretings guys! Well here's one for ya', Attempting what is typcally an issue free task; when tryin to export a project to adobe media encoder to create an mpeg 2 file, after it spends hours processing the file I'm getting the message" Multiplexing has failed, please check the settings and try again". What causes this problem? I'm using CS3!

    There are two places, that you need to check on, in AME. This shows both tabs in the MPEG dialog screen. Obviously, you will only have one open at a time.
    Hope that this helps and good luck,
    Hunt
    PS - the screen-cap is from PrPro 2.0, but should be very similar in CS3.

  • Workflow fails when page is created through the CreatePublishingPageDialog.aspx. The settings for this list have been recently changed.

    Hi,
    I've created a content type and attached a workflow to it so when I create a publishing page the workflow should run.
    My Page creation is based on the "_layouts/15/CreatePublishingPageDialog.aspx" page in order to be allowed to fill in the required fields on item creation (so I don't have to go to the page afterwards and choose "edit properties").
    On my page library I have "Require content approval for submitted items" and "Require documents to be checked out before they can be edited?" set to YES.
    This design has worked fine before I added my workflow. However now when I click save or check in/publish I get the below error. My guess is that the workflow starts (and blocks) right after I fill in the filename and click next in the "CreatePublishingPageDialog.aspx"
    step to go to the required fields.
    If I go back to my page after I receive the error below I can edit the required properties again and then publish the page correctly.
    How do I avoid this? thank you
    My pages are created through
    Checking the ULS log I get this error:
    Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> Microsoft.SharePoint.SPException: The settings for this list have been recently changed. Refresh
    your browser before editing this list.   
    at Microsoft.SharePoint.WebControls.BaseFieldControl.OnLoad(EventArgs e)   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Control.LoadRecursive()   
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.HandleError(Exception e)   
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)   
    at System.Web.UI.Page.ProcessRequest()   
    at System.Web.UI.Page.ProcessRequest(HttpContext context)   
    at Microsoft.SharePoint.Publishing.TemplateRedirectionPage.ProcessRequest(HttpContext context)   
    at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()   
    at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Hi Jan,
    Thanks for posting this issue, Kindly try out with the hot fixes provided in the below mentioned URLS
    https://support.microsoft.com/kb/2536591?wa=wsignin1.0
    http://elblanco.codeplex.com/releases/view/6856
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Hello REST web service example deployment fails when using EJB

    I was able to successfully deploy the hello REST web service example. But when I attempted to lookup an EJB via the following code I get an error message.
    try {
    ic = new InitialContext();
    DirectoryBean db = (DirectoryBean)ic.lookup("java:comp/env/ejb/DirectoryBean");
    } catch (NamingException ex) {
    ex.printStackTrace();
    Here is the error message in the NetBeans console window:
    Deploying application in domain failed; Error loading deployment descriptors for module [hello] -- com.sun.enterprise.deployment.annotation.context.WebBundleContext cannot be cast to com.sun.enterprise.deployment.annotation.context.EjbContextat com.sun.enterprise.deployment.annotation.AnnotationInfo@15f1fa0
    D:\java\Sun\swdp-tutorial-1.0\examples\rest\hello\nbproject\build-impl.xml:450: Deployment error:

    I think the problem may be that the SimpleServlet example uses an apt feature to generate a web.xml which will replace any web.xml you already have in the project (and lose any references etc you might have in it). To work around this problem first copy the necessary lines from the web.xml in the generates .war file - they should look something like this:
    <servlet>
    <servlet-name>RESTBeans Application</servlet-name>
    <servlet-class>com.sun.ws.rest.impl.container.servlet.ServletAdaptor</servlet-class>
    <init-param>
    <param-name>resourcebean</param-name>
    <param-value>com.sun.ws.rest.samples.servlet.resources.RESTBeansResources</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>RESTBeans Application</servlet-name>
    <url-pattern>/restbean/*</url-pattern>
    </servlet-mapping>
    Add these to your project web.xml, replacing any lines that look similar (the web.xml in the sample project has these lines that you'll need to replace:
    <servlet>
    <servlet-name>ServletAdaptor</servlet-name>
    <servlet-class>com.sun.ws.rest.impl.servlet.ServletAdaptor</servlet-class>
    <init-param>
    <param-name>resources</param-name>
    <param-value>test1</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <!-- this is a comment -->
    <servlet-name>ServletAdaptor</servlet-name>
    <url-pattern>/*</url-pattern>
    </servlet-mapping>
    Now you need to turn off automatic web.xml generation by adding <option key="noservlet"/> to the apt task option in build.xml (look for the apt child of the -pre-compile task in build.xml).
    Clean and rebuild and make sure that the web.xml in the generated .war file now matches the project web.xml file.
    Marc.

  • JCO RFC Provider: "Bean not found" when calling EJB from ABAP via RFC

    Hello,
    I'm having trouble calling an EJB in a CE 7.1 system from ABAP via RFC. I'm trying to use the JCO RFC Provider service, which mean that I want to expose an EJB so that it can be called via Remote Function Call.
    I have documented everything, including the code and the deployment descriptors I wrote, in this thread in the CE forum: Jco RFC Provider: Bean not found
    If there's any chance you can help, please do me a favour and look into the problem.
    Thanks a lot!
    Thorsten

    Hi Vladimir,
    Thank you very much, your help was immensely valuable.
    I just had to add the function declaration to the Home Component interface, everything else was correct, and now it works.
    Cheers,
    Thorsten

  • DSEE6.3 install. fails when try dsadm create    32bit version not installed

    Hellos.
    I am a newbie to DS 6.x
    I downloaded the SPARC9 .tar.gz and ran the command
    ./dsee_deploy install -i /data/DSEE63
    successfully. I see this on my console...
    skipping licence and unzipping output
    Do you accept the license terms ? <yes/no> : yes
    Check availability of port 11162
    Checking running Directory Server instances
    Checking running Directory Proxy Server instances
    Unzipping sun-ldap-base.zip ...
    Unzipping sun-ldap-dsrk6.zip ...
    Unzipping sun-ldap-dsrk-man.zip ...
    Unzipping sun-ldapcsdk-tools.zip ...
    Unzipping sun-ldapcsdk-dev.zip ...
    Unzipping sun-ldap-ljdk.zip ...
    Unzipping sun-ldap-jre.zip ...
    Unzipping sun-ldap-shared.zip ...
    Unzipping sun-ldap-shared-l10n.zip ...
    Unzipping sun-ldap-directory.zip ...
    Unzipping sun-ldap-directory-l10n.zip ...
    Unzipping sun-ldap-directory-config.zip ...
    Unzipping sun-ldap-directory-man.zip ...
    Unzipping sun-ldap-directory-dev.zip ...
    Unzipping sun-ldap-mfwk.zip ...
    Unzipping sun-ldap-cacao.zip ...
    Unzipping sun-ldap-console-agent.zip ...
    Unzipping sun-ldap-console-cli.zip ...
    Unzipping sun-ldap-console-common.zip ...
    Unzipping sun-ldap-console-var.zip ...
    Unzipping sun-ldap-jdmk.zip ...
    Unzipping sun-ldap-directory-client.zip ...
    Unzipping sun-ldap-directory-client-l10n.zip ...
    Unzipping sun-ldap-proxy.zip ...
    Unzipping sun-ldap-proxy-l10n.zip ...
    Unzipping sun-ldap-proxy-man.zip ...
    Unzipping sun-ldap-proxy-client.zip ...
    Unzipping sun-ldap-proxy-client-l10n.zip ...
    Unzipping sun-ldap-console-gui.zip ...
    Unzipping sun-ldap-console-gui-help.zip ...
    Unzipping sun-ldap-console-gui-l10n.zip ...
    Unzipping sun-ldap-console-gui-help-l10n.zip ...
    Creating WAR file for Console
    Configuring Cacao at /data/DSEE63/dsee6/cacao_2
    Setting Cacao parameter jdmk-home with default value [data/DSEE63/dsee6/private]
    Setting Cacao parameter java-home with default value [data/DSEE63/jre]
    Setting Cacao parameter nss-lib-home with default value [data/DSEE63/dsee6/private/lib]
    Setting Cacao parameter nss-tools-home with default value [data/DSEE63/dsee6/bin]
    Registering DSCC agent into cacao
    Starting Cacao if necessary
    Registering JESMF agent into Cacao
    Making a copy of dsee_deploy
    Making a copy of listrunnings
    You can now start your Directory Server Instances
    You can now start your Directory Proxy Server Instances
    minni#> /data/DSEE63/ds6/bin/dsadm create -p 3890 -P 6360 /data/DSEE63/ds-edu-sk
    32-bit version of Directory Server is not installed. dsadm cannot create a 32-bit instance.
    What is the problem?
    Why is 32bit version of DS not Installed?
    HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    Hi.
    It seems that you are be on a 32-bit SPARC platform (type 'isainfo -b' to check). DSEE6.3 is only supported on 64-bit SPARC platform.
    Regards.
    Carole.

  • RFC connection failed - When using code created by "GENERATE PHP" button

    Hi All,
    I can use the saprfc_test.php to login, call a BAPI and return data from SAP. But on the same BAPI screen if I click the generate php button and copy the new .php file into my /htdocs/saprfc folder and execute it the browser it returns with "RFC connection failed"
    I am totally stuck, please can anybody help?
    Rob.

    I needed to specify "MSHOST"=>"",    Its strange that this was not neccessary for interactive scripts but the problem is solved

  • When to use Custom Adapter, Event Beans and Spring beans

    Hi,
    I have basic question on when or on what basis/scenario the Custom Adapter, Event Beans or Spring beans should be used.
    All three has same implementation methods.
    Please help me in understanding when to use Custom Adapters, Event Beans or Spring beans.
    Thanks,
    Sri
    Edited by: 897694 on Mar 7, 2012 8:12 AM

    custom adapters:
    you have to use a custom adapter when you don't find any adapter in ocep which will serve your purpose.
    Most of the times you use an adapter to connect the application with external things like http server, etc It can be both to listen the events or to send the events outside.
    Event Beans:
    This type of beans does most of the work that an adapter code does but in convention beans are not used to connect the application with external stuff
    You can use Beans as event sink etc In this case using an using an adapter is not suggestable.
    If you implement Interfaces like Initializing Bean for an adapter code it won't work properly, you have to use an event Bean in that case.
    Spring beans:
    Spring beans are used when the bean code doesn't implement EventSink or EventSender.
    These beans are used to enable something (eg: make ${wlevs_dev_home}/abc/a/b.java this path is not understandable by java code unless you override the path using a spring bean)
    Most of the things which doesn't need a connection between components in the application (eg cache loader: you can do this using spring beans and event beans both but spring beans doesn't need a connection with cache)
    Hope this small writeup helps you :)
    Edited by: Patha on Mar 8, 2012 9:10 AM

  • RC-50004: Fatal: Error occurred in ApplyDatabase:Control file creation fail

    Hi,
    During the clone of R12.1 instance, while running the post clone on the DB tier, i am getting the following error
    RC-50004: Fatal: Error occurred in ApplyDatabase:Control file creation failed.
    when i looked into the log file, i can find this
    Creating the control file for hr12at1_jsrc-cn6 database ...
    SQL*Plus: Release 11.1.0.7.0 - Production on Tue Nov 17 04:41:58 2009
    Copyright (c) 1982, 2008, Oracle. All rights reserved.
    Connected to an idle instance.
    ORACLE instance shut down.
    Connected to an idle instance.
    ORACLE instance started.
    Total System Global Area 1071333376 bytes
    Fixed Size 1318172 bytes
    Variable Size 427819748 bytes
    Database Buffers 629145600 bytes
    Redo Buffers 13049856 bytes
    Control file created.
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2:
    '/u01/app/oracle11/db/apps_st/u32/oradata/R12HRM/tx_data11.dbf'
    Please help
    thanks a lot
    Sasikala

    Hi,
    Sorry, my mistake, I did not pay attention to the cloning part.
    For this error, looks like the database was not cleanly shutdown before copying the files or that preclone was not run successfully. You will have to run preclone again, and shutdown the database normally, then copy the file again.
    Regards,
    Hussein

  • Ksvcreate: Process(q001) creation failed

    Hi Guys...
    I run Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production on Solaris.
    My database is experiencing a poor performance and when I check in the alert log I find this:
    ksvcreate: Process(q001) creation failed
    When I connect local my database hang on these:
    SunOS:oracle:PRODDB /data1/app/oracle>sqlplus "/as sysdba";
    SQL*Plus: Release 10.2.0.5.0 - Production on Wed Dec 1 06:10:18 2010
    Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
    It takes time to connect as susch it is unusable.
    How can I deal with this issue?
    Please help!!!!!!!!!!!!!!!!!!!!!

    user11979518 wrote:
    I run Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production on Solaris.
    My database is experiencing a poor performance and when I check in the alert log I find this:
    ksvcreate: Process(q001) creation failedThere are a number of reasons why creating new processes can be slow and even fail. Most of these are due to lack of resources - for example having to swap out memory to create new virtual pages for the new process. If the resources are under strain, so too will be the creation of that process.
    Basic things to check would be CPU and memory utilisation, and file system free space. Also the number of processes already running. Hopefully you are not running a 101 Oracle instances on that single server platform?

  • WebLogic 12.1.2 fails when deploying ear with injecting extension and bean with injection of this extension in ejb

    WebLogic 12.1.2 fails when deploying an enterprise application(ear) that contains a ejb in which injected 1) an extension 2)bean with injection of this extension.
    The following exception is thrown:
    Caused By: org.jboss.weld.exceptions.DeploymentException: WELD-001409 Ambiguous dependencies for type [CdiExtension] with qualifiers [@Default] at injection point [[field] @Inject private test.extension.Bean1.extension].
    Possible dependencies [
    [Extension [class test.extension.CdiExtension] with qualifiers [@Default]; zip:/domain1/servers/AdminServer/tmp/_WL_user/test/7x6roh/lib/test-extension-0.0.1-SNAPSHOT.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@1[test.extension.CdiExtension@1115deb],
    Extension [class test.extension.CdiExtension] with qualifiers [@Default]; zip:/domain1/servers/AdminServer/tmp/_WL_user/test/7x6roh/lib/test-extension-0.0.1-SNAPSHOT.jar!/META-INF/services/javax.enterprise.inject.spi.Extension@1[test.extension.CdiExtension@ed791f]]]
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:314)
        at org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
        at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
        at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
        at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
        at org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)
        at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:379)
        at com.oracle.injection.provider.weld.WeldInjectionContainer.start(WeldInjectionContainer.java:106)
        at com.oracle.injection.integration.CDIAppDeploymentExtension.initCdi(CDIAppDeploymentExtension.java:70)
        at com.oracle.injection.integration.CDIAppDeploymentExtension.activate(CDIAppDeploymentExtension.java:47)
        at weblogic.application.internal.flow.AppDeploymentExtensionFlow.activate(AppDeploymentExtensionFlow.java:37)
        at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:729)
        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
        at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:258)
        at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:61)
        at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:165)
        at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:80)
    Problem can be easily reproduced by a minimal case:
    test.ear:
    \lib\test-extension-0.0.1-SNAPSHOT.jar
    test-ejb-0.0.1-SNAPSHOT.jar
    where
    test-extension-0.0.1-SNAPSHOT.jar contains:
    CdiExtension.java:
    package test.extension;
    import javax.enterprise.inject.spi.Extension;
    public class CdiExtension implements Extension {
        private String someString = "Some String";
        public String getSomeString() {
            return someString;
    Bean1.java:
    package test.extension;
    import javax.enterprise.context.ApplicationScoped;
    import javax.inject.Inject;
    @ApplicationScoped
    public class Bean1 {
        @Inject
        private CdiExtension extension;
        public String get() {
            return extension.getSomeString();
    test-ejb-0.0.1-SNAPSHOT.jar contains:
    EjbBean.java:
    package test;
    import test.extension.Bean1;
    import test.extension.CdiExtension;
    import javax.ejb.Stateless;
    import javax.inject.Inject;
    @Stateless
    public class EjbBean {
        @Inject
        private CdiExtension extension;
        @Inject
        private Bean1 bean1;
        public String getSomeString() {
            return extension.getSomeString() + "\n" + bean1.get();
    p.s. i seen same problem in community.oracle.com/thread/2577403 , but it happen in "war", not "ear", and seems successfully patched with patch №17424706

    Hi,
    It looks like there is patch exists for this issue.
    Patch 17198187
    Please try to download from the MOS or try to open a ticket with support.
    Regards,
    Kal

  • JAR creation failed , for Command bean DC

    Hi Experts,
    I am trying to access an EJB module DC from WebDynpro through Java bean model DC.
    In this when i tried to create a Jar file of the Java bean model, i got this error.
    JAR creation failed. See details for additional information.
    Problem writing /LocalDevelopmentdc_aptcbsap.com/bin/pg/com/atos/apt/bean/APTCommandBean.class to JAR: duplicate entry: pg/com/atos/apt/bean/APTCommandBean.class
    I have created in all total 4 DC
    1) EJB DC
    2) EAR DC
    3) Java bean DC
    4) WebDynpro DC
    I have reffered to the tutorial : Using EJBs in Web Dynpro application.
    Can you tell me what am i missing?
    Ashish Shah

    Hi Sridhar,
    Thanks for your suggestion.
    I have built and deployed the EAR DC.
    But When I added the following referencesto Java bean DC
    1) EAR DC , EJB DC
    2) ejb20.jar
    and i tried to build java bean DC project, it throws error for these referenced DC.
    And these referenced DCs are removed from the project.
    Do i have to add anything in the Public part of EJB or EAR DC?
    Can you tell me how to add those references in Public part and how to utilise them in other projects?
    Regards,
    Ashish Shah

Maybe you are looking for