J2EE 1.5 - EJB 3.0

1. Will EJB 3.0 be a part of J2EE 1.5?
2. When we can wait relase version of EJB 3.0 specification?

I wrote to Linda DeMichiel. She leads specifications of EJB 3.0:
Dear Artem,
We plan to release a Public Draft around the
end of June, and a Proposed Final Draft later
in 2005. EJB 3.0 will go Final when J2EE 5
does, in the first quarter of 2006.
Linda
Artem Golubev wrote:
Dear Linda DeMichiel,
We are to schedule our future project.
Could you, please, tell me when the release
version of EJB 3.0 is scheduled to be avaible?
Can I be sure that it will be avaible before Dec 2005?
sincerely yours,
Artem Golubev

Similar Messages

  • J2EE JNDI-00009 EJB Reference "ejb/SessionEJBCalled" could not be resolved

    When load (run) the following EJB (JDev 10.1.3.1.0 embedded server) loads with no problem:
    package project2;
    import javax.ejb.Stateless;
    @Stateless
    public class SessionEJBCalledBean implements SessionEJBCalledLocal {
    public SessionEJBCalledBean() {    }
    public void display() {  System.out.println("In called - Project2");   }
    When load the following, only difference is name attribute for the @Stateless annotation:
    package project2;
    import javax.ejb.Stateless;
    @Stateless(name="SessionEJBCalled")
    public class SessionEJBCalledBean implements SessionEJBCalledLocal {
    public SessionEJBCalledBean() {    }
    public void display() {  System.out.println("In called - Project2");    }
    Get the following error message - Why?
    2006-08-24 15:48:54.640 WARNING J2EE JNDI-00009 EJB Reference "ejb/SessionEJBCalled" could not be resolved. Allowing J2EEContext creation to continue anyway
    Finally - If I specify the name as per the following all is well:
    package project2;
    import javax.ejb.Stateless;
    @Stateless(name="SessionEJBCalledBean")
    public class SessionEJBCalledBean implements SessionEJBCalledLocal {
    public SessionEJBCalledBean() {    }
    public void display() {  System.out.println("In called - Project2");   }
    Would be appreciated if someone could tell me what is going on?
    Thanks - Ken

    When load (run) the following EJB (JDev 10.1.3.1.0 embedded server) loads with no problem:
    package project2;
    import javax.ejb.Stateless;
    @Stateless
    public class SessionEJBCalledBean implements SessionEJBCalledLocal {
    public SessionEJBCalledBean() {    }
    public void display() {  System.out.println("In called - Project2");   }
    When load the following, only difference is name attribute for the @Stateless annotation:
    package project2;
    import javax.ejb.Stateless;
    @Stateless(name="SessionEJBCalled")
    public class SessionEJBCalledBean implements SessionEJBCalledLocal {
    public SessionEJBCalledBean() {    }
    public void display() {  System.out.println("In called - Project2");    }
    Get the following error message - Why?
    2006-08-24 15:48:54.640 WARNING J2EE JNDI-00009 EJB Reference "ejb/SessionEJBCalled" could not be resolved. Allowing J2EEContext creation to continue anyway
    Finally - If I specify the name as per the following all is well:
    package project2;
    import javax.ejb.Stateless;
    @Stateless(name="SessionEJBCalledBean")
    public class SessionEJBCalledBean implements SessionEJBCalledLocal {
    public SessionEJBCalledBean() {    }
    public void display() {  System.out.println("In called - Project2");   }
    Would be appreciated if someone could tell me what is going on?
    Thanks - Ken

  • [J2EE:160167] uses ejb-links but no EJB modules

    Dear All
    Seeking support/assistance to resolve the below problem. I'm using laster Jdeveloper 11g software publish in 2011.
    weblogic.deployment.EnvironmentException: [J2EE:160167]The module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
    Please provide guidelines why this appears and how to resolve it.
    Best Regards
    Shahebaz Shaikh

    The module abc-ViewController-context-root in application abc_Project1_abc uses ejb-links but no EJB modules were found for this application
    Is the application deployed as an EAR application with web and ejb modules? If not, deploy as an EAR application.

  • J2EE confusion in EJB Docu example!

    I installed the j2ee beta and following the track in the documentation to learn EJB. the sample works fine. But after observing the interfaces and EJB class, I got confused by the following facts:
    1. the EJB class ConverterEJB does not 'implements' the remote interface Converter, although it does implement the two methods defined in that interface: dollarToYen() and yenToEuro()
    Q: then who 'implements' Converter?
    2. EJB Home ConvertEJB defines a single method create(),
    Q: where is it implemented.
    I can imagine sth between the EJB and its container must be doing sth, but it seems very foggy for me.
    Can any expert clarify this a little bit?
    thank you
    Benjamin

    Each session bean has a home interface, a remote interface and an implementation class.
    In your case, that is probably ...
    ConverterEJBHome is the home interface - it defines all the create() methods that can be used to establish the bean
    ConvertEJBSession is the remote interface that defines all the methods on the bean that the client can call
    ConverterEJBBean is the implementation class which contains all the create() methods and all the remote methods

  • Can't deploy j2ee app with EJBs

    Hi;
    I have installed Web Logic and have successfully deployed a servlet based app
    and a jsp based app. However, when I go to deploy an EJB based app (with servlets
    & JSPs too), I get the following error:
    ####<Apr 2, 2004 5:06:03 PM MST> <Notice> <Security> <belle> <myserver> <main>
    <<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm myrealm.>
    ####<Apr 2, 2004 5:06:04 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
    <main> <<WLS Kernel>> <> <BEA-000327> <Starting WebLogic Admin Server "myserver"
    for domain "mydomain">
    ####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
    <ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default"
    listening on port 7001, ip address *.*>
    ####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
    <main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
    ####<Apr 2, 2004 5:06:59 PM MST> <Warning> <Deployer> <belle> <myserver> <ExecuteThread:
    '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004> <Failures
    were detected while initiating Deploy task for application store.>
    ####<Apr 2, 2004 5:06:59 PM MST> <Error> <Deployer> <belle> <myserver> <ExecuteThread:
    '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
    to complete the deployment task with ID 0 for the application store.
    java.lang.ArrayIndexOutOfBoundsException: 6
         at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
         at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
         at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:802)
         at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:423)
         at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1359)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1184)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.ArrayIndexOutOfBoundsException: 6]
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    any ideas?
    thanks - dave

    Hi;
    I have installed Web Logic and have successfully deployed a servlet based app
    and a jsp based app. However, when I go to deploy an EJB based app (with servlets
    & JSPs too), I get the following error:
    ####<Apr 2, 2004 5:06:03 PM MST> <Notice> <Security> <belle> <myserver> <main>
    <<WLS Kernel>> <> <BEA-090082> <Security initializing using security realm myrealm.>
    ####<Apr 2, 2004 5:06:04 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
    <main> <<WLS Kernel>> <> <BEA-000327> <Starting WebLogic Admin Server "myserver"
    for domain "mydomain">
    ####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
    <ListenThread.Default> <<WLS Kernel>> <> <BEA-000355> <Thread "ListenThread.Default"
    listening on port 7001, ip address *.*>
    ####<Apr 2, 2004 5:06:11 PM MST> <Notice> <WebLogicServer> <belle> <myserver>
    <main> <<WLS Kernel>> <> <BEA-000360> <Server started in RUNNING mode>
    ####<Apr 2, 2004 5:06:59 PM MST> <Warning> <Deployer> <belle> <myserver> <ExecuteThread:
    '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149004> <Failures
    were detected while initiating Deploy task for application store.>
    ####<Apr 2, 2004 5:06:59 PM MST> <Error> <Deployer> <belle> <myserver> <ExecuteThread:
    '2' for queue: 'weblogic.kernel.System'> <<WLS Kernel>> <> <BEA-149201> <Failed
    to complete the deployment task with ID 0 for the application store.
    java.lang.ArrayIndexOutOfBoundsException: 6
         at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:222)
         at weblogic.ejb20.dd.xml.DDUtils.createDescriptorFromJarFile(DDUtils.java:97)
         at weblogic.ejb20.deployer.EJBModule.loadEJBDescriptor(EJBModule.java:802)
         at weblogic.ejb20.deployer.EJBModule.loadDescriptor(EJBModule.java:423)
         at weblogic.j2ee.J2EEApplicationContainer.loadDescriptors(J2EEApplicationContainer.java:1359)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1184)
         at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:1031)
         at weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.prepareContainer(SlaveDeployer.java:2634)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.createContainer(SlaveDeployer.java:2584)
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2506)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    --------------- nested within: ------------------
    weblogic.management.ManagementException: - with nested exception:
    [java.lang.ArrayIndexOutOfBoundsException: 6]
         at weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2523)
         at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:833)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:542)
         at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:500)
         at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    >
    any ideas?
    thanks - dave

  • EJB 3.0 - Destinations not specified

    Hi,
    I  am trying to deploy a J2EE application supporting EJB 3.0 on SAP CE 7.1 . During the deployment using NWDS , i am getting the error as "Destinations not specified".
    However , i have already preformed below listed steps :
    --> I have specified the queue and connection factory in the ejb-j2ee-engine.xml
    --> I have created the queue and the connection factory on the SAP server.
    --> I have included them in the jms-factories.xml , jms-destinations.xml and jms-resources.xml in the EAR file.
    Please provide suggest proper steps to be taken to resolve this error.
    Thanks
    Swati
    Error Details :
    #com.sap.engine.services.monitor.mbeans.MonitorResourceBundle##
    #1.5 #00505633661C001B000015CE000006880155CE07CF9994EF#1268287309660#/System/Server/Deployment##com.sap.engine.services.tcbldeploy_controller#Administrator#87021####5c9611f02aaa11dfabca00505633661c#Thread[RMI/IIOP Worker [4],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcbldeploy_controller#Plain###Exception has been returned while the 'JavaEE/wpServerPlus' was starting. Warning/Exception :
    [ERROR CODE DPL.DS.6193] Error while ; nested exception is:
         com.sap.engine.services.deploy.exceptions.ServerDeploymentException: [ERROR CODE DPL.DS.5030] Clusterwide exception: server ID 9620950:com.sap.engine.services.deploy.container.DeploymentException: Cannot activate endpoint for message-driven bean JavaEE/wpServerPlusxml|wpServer.jarxml|ServerAutomatedActivityMDBean
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:893)
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl.prepareStart(ContainerInterfaceImpl.java:425)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:219)
         at com.sap.engine.services.deploy.server.application.StartTransaction.prepare(StartTransaction.java:179)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:420)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:445)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.super_MakeAllPhases(ParallelAdapter.java:337)
         at com.sap.engine.services.deploy.server.application.StartTransaction.makeAllPhasesImpl(StartTransaction.java:550)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:251)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesAndWait(ParallelAdapter.java:392)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3389)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3375)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3278)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.startApplicationAndWait(DeployServiceImpl.java:3251)
         at com.sap.engine.services.dc.lcm.impl.J2EELCMProcessor.doStart(J2EELCMProcessor.java:99)
         at com.sap.engine.services.dc.lcm.impl.LifeCycleManagerImpl.start(LifeCycleManagerImpl.java:62)
         at com.sap.engine.services.dc.cm.deploy.impl.LifeCycleManagerStartVisitor.visit(LifeCycleManagerStartVisitor.java:34)
         at com.sap.engine.services.dc.cm.deploy.impl.DeploymentItemImpl.accept(DeploymentItemImpl.java:83)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcessLCMDeplItem(DefaultDeployPostProcessor.java:80)
         at com.sap.engine.services.dc.cm.deploy.impl.DefaultDeployPostProcessor.postProcess(DefaultDeployPostProcessor.java:56)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doPostProcessing(DeployerImpl.java:741)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.performDeploy(DeployerImpl.java:732)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.doDeploy(DeployerImpl.java:576)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:270)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImpl.deploy(DeployerImpl.java:192)
         at com.sap.engine.services.dc.cm.deploy.impl.DeployerImplp4_Skel.dispatch(DeployerImplp4_Skel.java:875)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:351)
         at com.sap.engine.services.rmi_p4.server.ServerDispatchImpl.run(ServerDispatchImpl.java:70)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:62)
         at com.sap.engine.services.rmi_p4.P4Message.execute(P4Message.java:37)
         at com.sap.engine.services.cross.fca.FCAConnectorImpl.executeRequest(FCAConnectorImpl.java:877)
         at com.sap.engine.services.rmi_p4.P4Message.process(P4Message.java:53)
         at com.sap.engine.services.cross.fca.MessageReader.run(MessageReader.java:58)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:108)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:304)
    Caused by: com.sap.engine.services.ejb3.container.ActionException: Cannot activate endpoint for message-driven bean JavaEE/wpServerPlusxml|wpServer.jarxml|ServerAutomatedActivityMDBean
         at com.sap.engine.services.ejb3.runtime.impl.Actions_MDBEndpointActivation.perform(Actions_MDBEndpointActivation.java:94)
         at com.sap.engine.services.ejb3.container.CompositeAction.perform(CompositeAction.java:81)
         at com.sap.engine.services.ejb3.container.ApplicationStarter.perform(ApplicationStarter.java:59)
         at com.sap.engine.services.ejb3.container.ContainerInterfaceImpl$Actions.perform(ContainerInterfaceImpl.java:887)
         ... 34 more
    Caused by: javax.resource.spi.InvalidPropertyException: Destination not specified!
         at com.sap.jms.resourceadapter.ActivationSpecBean.validate(ActivationSpecBean.java:88)
         at com.sap.engine.services.connector.jca15.EndpointActivationImpl.activateEndpoint(EndpointActivationImpl.java:446)
         at com.sap.engine.services.connector.jca15.EndpointActivationImpl.findResourceAdapterByName(EndpointActivationImpl.java:154)
         at com.sap.engine.services.connector.jca15.EndpointActivationImpl.findAdapter(EndpointActivationImpl.java:85)
         at com.sap.engine.services.connector.jca15.EndpointActivationImpl.activateEndpoint(EndpointActivationImpl.java:58)
         at com.sap.engine.services.ejb3.runtime.impl.Actions_MDBEndpointActivation.perform(Actions_MDBEndpointActivation.java:84)
         ... 37 more

    Hi
    [Help|http://help.sap.com/saphelp_nw04/helpdata/en/37/30c557fad05341a951cfd051bf0b44/frameset.htm]
    BR
    Satish Kumar

  • EJB 3.0 Preview - Security

    I was trying to use standard JDK annotations for securing EJB methods.
    At the time of compiling my EJB using weblogic.appc, I am getting the following error.Please let me know if anybody has a solution to this.
    Error processing annotations: java.lang.NullPointerException
    The complete stack trace is:
    java.lang.NullPointerException
    [java] at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processMethodPermissions(EjbAnnotationProcessor.java:968)
    [java] at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAssemblyDescriptor(EjbAnnotationProcessor.java:631)
    [java] at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processSessionAnnotations(EjbAnnotationProcessor.java:579)
    [java] at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:239)
    [java] at weblogic.ejb.container.dd.xml.EjbAnnotationProcessor.processAnnotations(EjbAnnotationProcessor.java:143)
    [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.processStandardAnnotations(EjbDescriptorReaderImpl.java:215)
    [java] at weblogic.ejb.container.dd.xml.EjbDescriptorReaderImpl.createReadOnlyDescriptorFromJarFile(EjbDescriptorReaderImpl.java:175)
    [java] at weblogic.ejb.spi.EjbDescriptorFactory.createReadOnlyDescriptorFromJarFile(EjbDescriptorFactory.java:93)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1370)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:434)
    [java] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:297)
    [java] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:95)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:118)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    [java] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:163)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:174)
    [java] at weblogic.appc.main(appc.java:14)
    [java] <Aug 18, 2006 3:28:57 PM MDT> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile your application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    [java] Error processing annotations: java.lang.NullPointerException
    I have given the source code of the ejb below.
    Business Interface:
    package examples
    import java.util.Collection;
    public interface Database {
         public Employee getEmployee(int empNo);
         public Collection<Employee> getEmployees();
         public Address getAddress(int empNo);
         public void createEmployee(Employee emp);
         public void updateEmployee(Employee emp);
         public void deleteEmployee(int empNo);
    Bean Class: I removed the code inside the method not to be cluttery.I assumed this class causes two logical security roles created "Admin" and "User"
    which needs to be mapped to the physical roles in weblogic-ejb-jar.xml.
    The weblogic-ejb-jar.xml is also given below.I do not have any entry in ejb-jar.xml corresponding to this bean.
    package examples
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Collection;
    import java.util.Vector;
    import javax.annotation.Resource;
    import javax.annotation.security.DeclareRoles;
    import javax.annotation.security.DenyAll;
    import javax.annotation.security.PermitAll;
    import javax.annotation.security.RolesAllowed;
    import javax.annotation.security.RunAs;
    import javax.ejb.Remote;
    import javax.ejb.SessionContext;
    import javax.ejb.Stateless;
    import javax.sql.DataSource;
    @Stateless
    @Remote(Database.class)
    @DeclareRoles({"Admin","User"})
    @RunAs("Admin")
    public class DatabaseBean implements Database{
         @PermitAll
         public Employee getEmployee(int empNo) {
              return null;
         @RolesAllowed("Admin")
         public Collection<Employee> getEmployees(){
              return null;
         @PermitAll
         public Address getAddress(int empNo){
              return null;
         @RolesAllowed("Admin")
         public void createEmployee(Employee emp){
              return null;
         @PermitAll
         public void updateEmployee(Employee emp){
         @DenyAll
         public void deleteEmployee(int empNo){
    weblogic-ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8" ?>
    <weblogic-ejb-jar xmlns="http://www.bea.com/ns/weblogic/90" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.bea.com/ns/weblogic/90 http://www.bea.com/ns/weblogic/90/weblogic-ejb-jar.xsd">
         <weblogic-enterprise-bean>     
              <ejb-name>DatabaseBean</ejb-name>
              <security-role-assignment>     
                   <role-name>Admin</role-name>     
                   <principal-name>AdminRole</principal-name>
              </security-role-assignment>
              <security-role-assignment>     
                   <role-name>User</role-name>     
                   <principal-name>UserRole</principal-name>
              </security-role-assignment>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>

    I'm a little bit confused about the different
    versions:
    OC4J (OAS) 10.0.2 ==> J2EE 1.3: releaded.
    Yes, correct.
    OC4J 10.1.3 ==> J2EE 1.4: release date
    maybe summer 2005?
    Correct. But it will contain an usable, supportable implementation of the EJB 3.0 specification. So it's basically J2EE 1.4 + EJB 3.0.
    By default it won't run with EJB 3.0 enabled.
    You will need to specifically enable EJB 3.0 when you start the container.
    Oc4J with EJB 3.0 features ==>> J2EE 1.5 ??, planned
    release date?
    There's no such beast planned yet.
    Since we're actively working on an EJB 3.0 implementation, we thought we'd release it for you all to try out. It's based off the 10.1.3 code base. Since the timing was a bit out, we just put it out as a separate distro for the time being.
    Our next 10.1.3 Developer Preview will reconcile this, and will be both OC4J 10.1.3 + EJB 3.0 in one package.
    Hope that helps and not hinders your understanding!
    cheers
    -steve-

  • Problem in deploying EJBs in oc4j

    Hi folks,
    I am new to ejbs and now I am into support role for ejb2.0 project devoloped long ago. one of the module in that proj has ejb2.0 (Using CMP entity beans & Session beans(stateless))
    The problem I am facing currently is , while running the the ejb module (by running a jsp page in that module) I am getting the following error.
    In this log I found two things primarily
    1) All ejbs are not deployed successfully (due to IntialContext lookup failure)
    2) java.lang.NoSuchMethodError while calling the static method of a bean in the jsp
    I have cross checked about the second one I didn't find any issue..is there any issue about jar(?) versions and I have run another jsp having no call to that static method then it is worked fine and the jsp view came(but still the first problem is there)
    please help me...
    [Starting OC4J using the following ports: HTTP=9001, RMI=23904, JMS=9237.]
    D:\Robbin_Brothers\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config>
    D:\Robbin_Brothers\jdevstudio10132\jdk\bin\javaw.exe -client -classpath D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar;D:\Robbin_Brothers\jdevstudio10132\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config D:\Robbin_Brothers\jdevstudio10132\jdev\system\oracle.j2ee.10.1.3.40.66\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Jan 29, 2013 6:48:33 PM com.evermind.server.XMLDataSourcesConfig parseRootNode
    INFO: Legacy datasource detected...attempting to convert to new syntax.
    Jan 29, 2013 6:48:34 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    Jan 29, 2013 6:48:34 PM com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\activation.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/j2ee/home/lib/activation.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\classes12.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/jdbc/lib/ojdbc14dms.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\ejb.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/j2ee/home/lib/ejb.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\jms.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/j2ee/home/lib/jms.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\jsse.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/jdk/jre/lib/jsse.jar (from system property sun.boot.class.path). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\mail.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/j2ee/home/lib/mail.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\servlet.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/j2ee/home/lib/servlet.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    WARNING: Code-source D:\Robbin_Brothers\SVN_CHECKOUT_Latest_Sravani\production\project_jars\soap.jar (from <library> in /D:/Robbin_Brothers/jdevstudio10132/jdev/mywork/XXSTS/XXSTS-oc4j-app.xml) has the same filename but is not identical to /D:/Robbin_Brothers/jdevstudio10132/webservices/lib/soap.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\Robbin_Brothers\jdevstudio10132\j2ee\home\oc4j.jar). If it contains different versions of the same classes, it will be masked as the latter is already visible in the search path of loader current-workspace-app.root:0.0.0.
    13/01/29 18:48:35 WARNING: EJBPackage.parseOrionBean Bean NoReasonType does not exist; skipping deployment
    13/01/29 18:48:35 WARNING: EJBPackage.parseOrionBean Bean CompetitorsList does not exist; skipping deployment
    13/01/29 18:48:40 Activity: Class 'com.osit.ejb.entity.ActivityLocal' has been updated since last deployment
    13/01/29 18:48:40 OccasionTypes: Class 'com.osit.ejb.entity.OccasionTypesLocal' has been updated since last deployment
    13/01/29 18:48:40 Rules: Class 'com.osit.ejb.entity.RulesLocal' has been updated since last deployment
    13/01/29 18:48:40 Messages: Class 'com.osit.ejb.entity.MessagesLocal' has been updated since last deployment
    Jan 29, 2013 6:48:47 PM com.evermind.server.ejb.logging.EJBCompilationMessages infoAutoCreateTable
    INFO: [current-workspace-app:XXSTS_XXSTS_0] Auto-creating table: create table STS_ACTIVITY (ACTIVITY_ID NUMBER(22) primary key, ACTIVITY_DATE DATE, CALLBACK_DATE DATE, ACTIVITY_TYPE CHAR(50), STATUS_ID CHAR(50), COMMENTS VARCHAR2(300), NO_REASON_ID CHAR(50), COMPETITOR_ID CHAR(50), CALL_SEQ NUMBER(22), MAIL_SEQ NUMBER(22), EMAIL_SEQ NUMBER(22), FAX_SEQ NUMBER(22), TEXT_SEQ NUMBER(22), PRESENT_SEQ NUMBER(22), PERSON_ID NUMBER(22), CUSTOMER_ID NUMBER(22), OCCASSION CHAR(100), REASON CHAR(100), call_type VARCHAR2(255) null, MAIL_TYPE VARCHAR2(20), INCORRECTCONTACT_TYPE VARCHAR2(20), other_competitor VARCHAR2(500), CSF_NUMBER VARCHAR2(50), IS_COMPLETED CHAR(1)).
    13/01/29 18:48:47 Warning: ORA-00955: name is already used by an existing object
    Jan 29, 2013 6:48:48 PM com.evermind.server.ejb.logging.EJBCompilationMessages infoAutoCreateTable
    INFO: [current-workspace-app:XXSTS_XXSTS_0] Auto-creating table: create table STS_OCCASION_TYPES (OCCASSION_ID CHAR(50) primary key, DESCRIPTION CHAR(200)).
    13/01/29 18:48:48 Warning: ORA-00955: name is already used by an existing object
    Jan 29, 2013 6:48:49 PM com.evermind.server.ejb.logging.EJBCompilationMessages infoAutoCreateTable
    INFO: [current-workspace-app:XXSTS_XXSTS_0] Auto-creating table: create table STS_RULES (RULE_ID NUMBER(22) primary key, OCCASION_ID CHAR(20), OCCASION_STATUS CHAR(2), CONDITION CHAR(20), DAYS NUMBER(22), STATUS NUMBER(22), TYPE CHAR(20)).
    13/01/29 18:48:50 Warning: ORA-00955: name is already used by an existing object
    Jan 29, 2013 6:48:50 PM com.evermind.server.ejb.logging.EJBCompilationMessages infoAutoCreateTable
    INFO: [current-workspace-app:XXSTS_XXSTS_0] Auto-creating table: create table STS_MESSAGES (MSG_ID NUMBER(22) primary key, PERSON_ID NUMBER(22), SUBJECT CHAR(500), DESCRIPTION VARCHAR2(3000), MSG_TO NUMBER(22), READ NUMBER(22)).
    13/01/29 18:48:51 Warning: ORA-00955: name is already used by an existing object
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 22360 ms.
    Target URL -- http://192.168.9.66:9001/STS/ActivitySummary.jsp
    Checking that EJBs were successfully deployed in embedded OC4J...
    13/01/29 18:48:54 Oracle Containers for J2EE 10g (10.1.3.1.1) initialized
    **** Warning: The EJB Activity was not found via an InitialContext lookup. Error encountered: Activity not found.
    **** Warning: The EJB OccasionTypes was not found via an InitialContext lookup. Error encountered: OccasionTypes not found.
    **** Warning: The EJB Rules was not found via an InitialContext lookup. Error encountered: Rules not found.
    **** Warning: The EJB Messages was not found via an InitialContext lookup. Error encountered: Messages not found.
    **** Warning: Not all EJBs were successfully deployed. The EJB application may fail during testing.
    **** Please use the EJB Verifier to check your EJB modules for errors by right-clicking on ejb-jar.xml and choosing 'Verify Enterprise Beans'.
    13/01/29 18:48:55 log4j:ERROR Could not open [home/oracle/xmllog4jconfig.xml].
    13/01/29 18:48:55 java.io.FileNotFoundException: \home\oracle\xmllog4jconfig.xml (The system cannot find the path specified)
    13/01/29 18:48:55      at java.io.FileInputStream.open(Native Method)
    13/01/29 18:48:55      at java.io.FileInputStream.<init>(FileInputStream.java:106)
    13/01/29 18:48:55      at java.io.FileInputStream.<init>(FileInputStream.java:66)
    13/01/29 18:48:55      at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:583)
    13/01/29 18:48:55      at org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:687)
    13/01/29 18:48:55      at com.osit.factory.LoggerFactory.<init>(LoggerFactory.java:19)
    13/01/29 18:48:55      at com.osit.factory.LoggerFactory.getInstance(LoggerFactory.java:30)
    13/01/29 18:48:55      at Error.<clinit>(Error.java:17)
    13/01/29 18:48:55      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    13/01/29 18:48:55      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    13/01/29 18:48:55      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    13/01/29 18:48:55      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    13/01/29 18:48:55      at java.lang.Class.newInstance0(Class.java:350)
    13/01/29 18:48:55      at java.lang.Class.newInstance(Class.java:303)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspPageInstFacade.createInst(JspPageInstFacade.java:157)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspPageInstFacade.getInstance(JspPageInstFacade.java:186)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:445)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
    13/01/29 18:48:55      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:258)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
    13/01/29 18:48:55      at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
    13/01/29 18:48:55      at com.evermind.server.http.EvermindPageContext.handlePageThrowable(EvermindPageContext.java:790)
    13/01/29 18:48:55      at com.evermind.server.http.EvermindPageContext.handlePageException(EvermindPageContext.java:756)
    13/01/29 18:48:55      at ActivitySummary.jspService(_ActivitySummary.java:629)
    13/01/29 18:48:55      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
    13/01/29 18:48:55      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    13/01/29 18:48:55      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    13/01/29 18:48:55      at java.lang.Thread.run(Thread.java:595)
    13/01/29 18:48:55 java.lang.NoSuchMethodError: com.osit.bean.Common.getUserDetails(Ljava/lang/String;)Ljava/util/Hashtable;
    13/01/29 18:48:55      at ActivitySummary.jspService(_ActivitySummary.java:80)
    13/01/29 18:48:55      at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:598)
    13/01/29 18:48:55      at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:522)
    13/01/29 18:48:55      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:712)
    13/01/29 18:48:55      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:215)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    13/01/29 18:48:55      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    13/01/29 18:48:55      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    13/01/29 18:48:55      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    13/01/29 18:48:55      at java.lang.Thread.run(Thread.java:595)
    13/01/29 18:48:55 log4j:WARN No appenders could be found for logger (Error.jsp).
    13/01/29 18:48:55 log4j:WARN Please initialize the log4j system properly.

    Thanks for quick reply dvohra16
    I have checked with the path of xmllog4jconfig.xml which is in classpath.I tried with changing the string in LoggerFactory class
    DOMConfigurator.configure("xmllog4jconfig.xml");
    but still I am facing the same error.
    from where this path "/home/oracle/xmllog4jconfig.xml" is taking I can't understand.....
    error:
    13/01/30 17:31:17 log4j:ERROR Could not open [home/oracle/xmllog4jconfig.xml].
    13/01/30 17:31:17 java.io.FileNotFoundException: \home\oracle\xmllog4jconfig.xml (The system cannot find the path specified)
    13/01/30 17:31:17      at java.io.FileInputStream.open(Native Method)
    My LoggerFactory class:
    import org.apache.log4j.Logger;
    import org.apache.log4j.xml.DOMConfigurator;
    import java.net.URL;
    public class LoggerFactory
    private static LoggerFactory loggerFactory= null;
    private LoggerFactory()
    try{
    DOMConfigurator.configure("xmllog4jconfig.xml");
    }catch (Exception e)
    e.printStackTrace();
         public static LoggerFactory getInstance() {
    if (loggerFactory == null){
    loggerFactory = new LoggerFactory();
    return loggerFactory;
    Thanks,
    Tej

  • [b]EJB Hotel RA Client Error - HELP[/b]

    1. Travel schema installed fine
    2. Web Client can successfully be run and all the buttons
    work fine
    3. The only file I modified was in config properties.
    Provider_Url = ormi://localhost:8888/OneEJBHotel
    4. in oc4j directory: principals file:
    user id is "admin", and password was given as
    "admin"
    4. deployment from jdeveloper is fine as follows:
    ---- Deployment started. ---- Jan 24, 2003 6:24:08 PM
    Wrote EJB JAR file to C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel.jar
    Wrote WAR file to C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel-Web.war
    Wrote EAR file to C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel-Web.ear
    Invoking OC4J admin tool...
    C:\jdeveloper\jdk\jre\bin\javaw.exe -jar C:\jdeveloper\j2ee\home\admin.jar ormi://DLEE/ admin **** -deploy -file C:\oc4j\samples\ejb\OneEJBHotel\src\oracle\otnsamples\OneEJBHotel\OneEJBHotel-Web.ear -deploymentName OneEJBHotel
    Auto-unpacking C:\oc4j\j2ee\home\applications\OneEJBHotel-Web.ear... done.
    Auto-unpacking C:\oc4j\j2ee\home\applications\OneEJBHotel-Web\OneEJBHotel-Web.war... done.
    Copying default deployment descriptor from archive at C:\oc4j\j2ee\home\applications\OneEJBHotel-Web/META-INF/orion-application.xml to deployment directory C:\oc4j\j2ee\home\application-deployments\OneEJBHotel...
    Auto-deploying OneEJBHotel (New server version detected)...
    Exit status of OC4J admin tool (-deploy): 0
    C:\jdeveloper\jdk\jre\bin\javaw.exe -jar C:\jdeveloper\j2ee\home\admin.jar ormi://DLEE/ admin **** -bindWebApp OneEJBHotel OneEJBHotel-Web http-web-site /OneEJBHotel
    Exit status of OC4J admin tool (-bindWebApp): 0
    Use the following context root(s) to test your web application(s):
    http://DLEE:8888/OneEJBHotel
    Elapsed time for deployment: 14 seconds
    ---- Deployment finished. ---- Jan 24, 2003 6:24:22 PM
    5. System Configuation
    jdeveloper: 9.0.3.1035
    DB: oracle 92010
    oc4j: 9.0.3.0.0
    6. When run from jdeveloper client: run Client.jpr
    the following errors were generated:
    Process exited with exit code 0.
    C:\jdeveloper\jdk\bin\javaw.exe -ojvm -classpath C:\oc4j\samples\ejb\OneEJBHotel\src\classes;C:\oc4j\samples\ejb\OneEJBHotel\config;C:\oc4j\samples\ejb\OneEJBHotel;C:\oc4j\samples\ejb\OneEJBHotel\src\web;C:\jdeveloper\jdev\lib\jdev-rt.jar;C:\jdeveloper\j2ee\home\lib\activation.jar;C:\jdeveloper\j2ee\home\lib\ejb.jar;C:\jdeveloper\j2ee\home\lib\jaas.jar;C:\jdeveloper\j2ee\home\lib\jaxp.jar;C:\jdeveloper\j2ee\home\lib\jcert.jar;C:\jdeveloper\j2ee\home\lib\jdbc.jar;C:\jdeveloper\j2ee\home\lib\jms.jar;C:\jdeveloper\j2ee\home\lib\jndi.jar;C:\jdeveloper\j2ee\home\lib\jnet.jar;C:\jdeveloper\j2ee\home\lib\jsse.jar;C:\jdeveloper\j2ee\home\lib\jta.jar;C:\jdeveloper\j2ee\home\lib\mail.jar;C:\jdeveloper\j2ee\home\oc4j.jar oracle.otnsamples.OneEJBHotel.client.EJBHotelSample
    javax.naming.NamingException: Lookup error: java.io.IOException: Server protocol was not ORMI, if uncertain about the port your server uses for ORMI then use the default, 23791; nested exception is:
         java.io.IOException: Server protocol was not ORMI, if uncertain about the port your server uses for ORMI then use the default, 23791
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void oracle.otnsamples.OneEJBHotel.client.EJBHotelSample.getHotelSystemBean()
              EJBHotelSample.java:132
         void oracle.otnsamples.OneEJBHotel.client.EJBHotelSample.main(java.lang.String[])
              EJBHotelSample.java:147
    Process exited with exit code 0.
    Thanks for help!
    David

    David,
    config.properties is used only by the client.jpr. Not by the Web.jpr
    config.properties file has been provided for looking up resources[EJB, Datasources] from JNDI tree of OC4J.
    Since servlet and other resources are in the same container[Single JVM] there is no need to specify the username, password, Provdier_URL at the time of lookup.
    Look at the init method of EJBHotelServlet.java :
    Context ctx = new InitialContext();
    // Acquire the home interface handle and call the create
    //method on it
    homeInterface = (HotelSystemHome)ctx.lookup("OneEJBHotel");
    Here servlet looks up EJB without any authentication information, as servlet and EJB are in the same container.
    Whereas Stand alone client is running outside the OC4J.
    So the stand alone client need to authentcate itself for looking up the resources from JNDI tree.
    Look at the getHotelSystemBean method of EJBHotelSample.java :
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, prop.getProperty("Initial_Context_Factory"));
    env.put(Context.SECURITY_PRINCIPAL, prop.getProperty("Principal"));
    env.put(Context.SECURITY_CREDENTIALS, prop.getProperty("Credential"));
    env.put(Context.PROVIDER_URL, prop.getProperty("Provider_Url") );
    // Associate the properties with the context
    Context ctx = new InitialContext(env);
    // Acquire the home interface handle and call the create
    //method on it
    homeInterface = (HotelSystemHome)ctx.lookup("OneEJBHotel");
    Here stand alone client looks up EJB by specifying the authentication information, as stand alone client and EJB are running in different JVM's.
    Hope this helps...
    Cheers
    --Venky                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • EJB Client Access From JDeveloper9iR2

    I seem to be running into a lot of problems when trying to get a simple EJB client to talk to an EJB on our 9IAS platform. I have developed a simple session bean (just to test) which simply returns a string. When I create the default client code this works fine using the embedded OC4J server in Jdeveloper but I can't run a similar client against 9IAS when I deploy the code. When I go through the client wizard it seems to produce the same code as the standalone EJB OC4J client. I simply changed the name of the server (Context.PROVIDER_URL, "ormi://pe2500/). This is the parameter code I use:
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "admin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "ormi://pe2500:23891/MyEJBs");
    This is the output I receive:
    D:\jdeveloper9ir2\jdk\bin\javaw.exe -ojvm -classpath D:\javadev\ejbservlet\ejbservlet\WEB-INF\classes;D:\jdeveloper9ir2\jdev\lib\jdev-rt.jar;D:\jdeveloper9ir2\j2ee\home\lib\ojsp.jar;D:\jdeveloper9ir2\j2ee\home\jsp\lib\taglib\ojsputil.jar;D:\jdeveloper9ir2\j2ee\home\oc4j.jar;D:\jdeveloper9ir2\j2ee\home\lib\servlet.jar;D:\jdeveloper9ir2\jdev\lib\ojc.jar;D:\jdeveloper9ir2\j2ee\home\lib\activation.jar;D:\jdeveloper9ir2\j2ee\home\lib\ejb.jar;D:\jdeveloper9ir2\j2ee\home\lib\jaas.jar;D:\jdeveloper9ir2\j2ee\home\lib\jaxp.jar;D:\jdeveloper9ir2\j2ee\home\lib\jcert.jar;D:\jdeveloper9ir2\j2ee\home\lib\jdbc.jar;D:\jdeveloper9ir2\j2ee\home\lib\jms.jar;D:\jdeveloper9ir2\j2ee\home\lib\jndi.jar;D:\jdeveloper9ir2\j2ee\home\lib\jnet.jar;D:\jdeveloper9ir2\j2ee\home\lib\jsse.jar;D:\jdeveloper9ir2\j2ee\home\lib\jta.jar;D:\jdeveloper9ir2\j2ee\home\lib\mail.jar;D:\jdeveloper9ir2\j2ee\home\oc4j.jar;D:\jdeveloper9ir2\lib\xmlparserv2.jar;D:\jdeveloper9ir2\lib\xmlcomp.jar;D:\jdeveloper9ir2\j2ee\home\oc4j.jar;D:\jdeveloper9ir2\j2ee\home\lib\servlet.jar Samplemypackage6.ctejb1Client3
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:350
         void Samplemypackage6.ctejb1Client3.main(java.lang.String[])
              ctejb1Client3.java:18
    Process exited with exit code 0.
    Can anyone tell me if this is the correct communication method for client EJB's talking to the 9IAS server?
    Any help really appreciated.
    Chris Taylor

    hi Chris Taylor, did you find the solution for this error. i too get this error and i am looking for the answer. if you find any answer please share with me too. if i get any answer for this i will reply you too.

  • J2EE adapter module not getting invoked by module processor

    Hi All,
    i have deployed my .ear file in SDM Repository successfully.
    but my J2EE adapter module is not getting invoked by module processor......this i can say because i have written code to audit log my message in the java class...but when i gave input an empty file, the audit log of that file in Message Audit Log showed only 3 Steps of file converted to XML format, no data found so not generating message, deletion of my empty file.
    Can anybody suggest how to enable my J2EE adapter module as i have created this module so that if i give empty file, then in the adapter i am creating a dummy XML for my message.
    Thanks and Regards,
    Rajeev Gupta

    Hi Stefan,
    1. JNDI name in visual admin is CustomerMeter
    2. the files in .ear file are:
    libraries,
    ejb project file,
    META-INF folder
    in ejb project file the following files are there:
    ejb-j2ee-engine.xml
    ejb-jar.xml
    CustomerMeter.class
    Please tell what to do now.
    Hi Amol,
    in audit log only 3 messages are coming: File converted to XML format, no data in document  so not sending message, deleting of empty file.
    i have given audit log statements in java class but my audit-log statements are not coming in the audit log
    this means my adapter module is not getting invoked.
    Please tell what to do to correct this error.
    Thanks and Regards,
    Rajeev Gupta

  • Problem running EJB in 0c4j

    The error "Connection refused" is reported when attempting to run an EJB application with the embedded 0c4j server. The application was deployed Application Server "Connection 1"; the ide connects to Connection 1
    from the connection configuration wizard(ie., "Test Connection" returns "Success!"). Why the error? Trace below
    C:\jdk1.3.1_06\bin\javaw.exe -ojvm -classpath C:\jDeveloper903\jdev\mywork\Workspace3\JRun1\classes;C:\jDeveloper903\jdev\lib\jdev-rt.jar;C:\jDeveloper903\orant\lite\classes\olite40.jar;C:\jDeveloper903\jdbc\lib\classes12.jar;C:\jDeveloper903\jdbc\lib\nls_charset12.jar;C:\jDeveloper903\j2ee\home\lib\activation.jar;C:\jDeveloper903\j2ee\home\lib\ejb.jar;C:\jDeveloper903\j2ee\home\lib\jaas.jar;C:\jDeveloper903\j2ee\home\lib\jaxp.jar;C:\jDeveloper903\j2ee\home\lib\jcert.jar;C:\jDeveloper903\j2ee\home\lib\jdbc.jar;C:\jDeveloper903\j2ee\home\lib\jms.jar;C:\jDeveloper903\j2ee\home\lib\jndi.jar;C:\jDeveloper903\j2ee\home\lib\jnet.jar;C:\jDeveloper903\j2ee\home\lib\jsse.jar;C:\jDeveloper903\j2ee\home\lib\jta.jar;C:\jDeveloper903\j2ee\home\lib\mail.jar;C:\jDeveloper903\j2ee\home\oc4j.jar;C:\jDeveloper903\lib\xmlparserv2.jar;C:\jDeveloper903\lib\xmlcomp.jar SampleJRun1.SessionManagerLiteStatelessClient
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect
         java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
              RMIContext.java:134
         java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
              InitialContext.java:345
         void SampleJRun1.SessionManagerLiteStatelessClient.main(java.lang.String[])
              SessionManagerLiteStatelessClient.java:18
    Process exited with exit code 0.

    The applets execute in a sand box. There have heavy security restrictions put upon them so that they do not do hard to your system.
    When people write applets which try to talk to ejbs the following are the common problems they face.
    1. The EJB server is running on a different machine than the web server from which the applet was downloaded from. this is because of the fact that an applet cannot make a connection to a machine
    other than the one it was downloaded from. So an applet downloaded from 127.0.0.1 cannot make a connection to another machine 17.98.56.143 (unless the security policy is made less strict by means of certificates.)
    2. The EJB servers listen on non standard ports (weblogic listens on 7001) whereas normal firewall installations block all ports other than 80. so a product which worked beautiflly in you dev environment goes but when you deploy in the real environment.
    Applets should connect to EJBs through the means of the web-tier and not directly.
    Please go thru the following link for more details.
    http://java.sun.com/blueprints/guidelines/designing_enterprise_applications/client_tier/qanda/index.html
    hope this helps.
    regards,
    Abhishek.

  • 2 local ejb and one remote session bean in same server - java client

    idea was -
    to create a new stateless session bean that will talk to the two entity beans. although the session bean will expose its method through a remote interface, the communication betweenn the session bean and the entity beans will be through a local interface. the assumptions is that all three ejbs are running in the same JVM.
    so -
    all three ejbs complied properly.
    but -
    when i tried to test with one 'sample test client' then this is the error i get.
    please please -
    can you look into the below error and let me know what possibly i'm doing wrong. i've been trying for last 4 days and can't figure out.
    thanks a lot.
    D:\jdev9052\jdk\bin\javaw.exe -ojvm -classpath D:\jdev9052\jdev\mywork\H&K\EJBApp\classes;D:\jdev9052\j2ee\home\lib\activation.jar;D:\jdev9052\j2ee\home\lib\ejb.jar;D:\jdev9052\j2ee\home\lib\jaas.jar;D:\jdev9052\j2ee\home\lib\jaxp.jar;D:\jdev9052\j2ee\home\lib\jcert.jar;D:\jdev9052\j2ee\home\lib\jdbc.jar;D:\jdev9052\j2ee\home\lib\jms.jar;D:\jdev9052\j2ee\home\lib\jndi.jar;D:\jdev9052\j2ee\home\lib\jnet.jar;D:\jdev9052\j2ee\home\lib\jsse.jar;D:\jdev9052\j2ee\home\lib\jta.jar;D:\jdev9052\j2ee\home\lib\mail.jar;D:\jdev9052\j2ee\home\lib\servlet.jar;D:\jdev9052\j2ee\home\oc4j.jar;D:\jdev9052\opmn\lib\optic.jar;D:\jdev9052\jdev\system9.0.5.2.1618\oc4j-config\.client;D:\jdev9052\lib\xmlparserv2.jar;D:\jdev9052\lib\xmlcomp.jar TeamStaffSessionEJBClient
    context initialized
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; nested exception is:
         java.net.ConnectException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:153)
         at javax.naming.InitialContext.lookup(InitialContext.java:347)
         at TeamStaffSessionEJBClient.main(TeamStaffSessionEJBClient.java:17)
    Caused by: java.net.ConnectException: Connection refused: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at java.net.Socket.<init>(Socket.java:309)
         at java.net.Socket.<init>(Socket.java:153)
         at com.evermind.server.rmi.RMIConnection.connect(RMIConnection.java:2216)
         at com.evermind.server.rmi.RMIConnection.lookup(RMIConnection.java:1692)
         at com.evermind.server.rmi.RMIServer.lookup(RMIServer.java:678)
         at com.evermind.server.rmi.RMIContext.lookup(RMIContext.java:134)
         ... 2 more
    Process exited with exit code 0.

    After you drop an ejb into the designer, you'll see a <ejb>Client1 instance created for the ejb in the backing bean (i.e. Page1.java). The client instance is a wrapper for the ejb. It contains all the remote methods available on your ejb. In your web app, you can invoke any methods on the client instance as if you're calling methods on a regular java object. The wrapper class knows how to invoke the corresponding methods on the ejb for you.
    -dongmei

  • To use JSP or EJBs

    Hi,
    We plan to develop a product on java which was earlier developed on VC++. This is a Client/server project containing User Interaction GUI screens to enter,modify & delete data. This exisiting system is a 2-tier model developed for intranet environment. Now to make the same application using java, which will be more efficient and fast. EJBs or JSPs ?? what are the factors that should be considered before one decides whether to use EJBs or JSPs ?

    Hi,
    From the way u asked the question...it seems that u will still need a beter understanding of EJBs and JSPs.
    U need to understand J2EE properly then, EJBs, JSPs, e.t.c will become clearer.
    Try this sun site technologies->J2EE there are lots and lots of tutorials and begineer tools and utilities to understand the working of J2EE in Building Enterprise applications. In some cases u need to employe both technologies. (EJBs JSPs).
    Cheers.

  • Problem whith JDeveloper 11g to startup EJB Client

    When i Run the EJBBean display this error message:
    1/02/2008 10:03:54 AM oracle.j2ee.xml.XMLMessages warningException
    ADVERTENCIA: Exception Encountered
    1/02/2008 10:03:55 AM oracle.oc4j.util.SystemLog log
    GRAVE: Server start failed processing configuration
    java.security.AccessControlException: access denied ( CredentialAccessPermission credstoressp.credstore.default.systemuser read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
    at java.security.AccessController.checkPermission(AccessController.java:427)
    at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$3.checkPermission(JpsAuth.java:256)
    at oracle.security.jps.util.JpsAuth$Diagnostic.checkPermission(JpsAuth.java:180)
    at oracle.security.jps.util.JpsAuth$AuthorizationMechanism$6.checkPermission(JpsAuth.java:280)
    at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:315)
    at oracle.security.jps.util.JpsAuth.checkPermission(JpsAuth.java:338)
    at oracle.security.jps.internal.credstore.util.CsfUtil.checkPermission(CsfUtil.java:527)
    at oracle.security.jps.internal.credstore.ssp.SspCredentialStore.getCredential(SspCredentialStore.java:412)
    at oracle.security.jps.fmw.util.JpsFmwUtil.findSystemUser(JpsFmwUtil.java:218)
    at oracle.security.jps.fmw.JpsUserManager.init(JpsUserManager.java:235)
    at oracle.security.jps.fmw.JpsUserManager.<init>(JpsUserManager.java:247)
    at oracle.security.jps.fmw.JpsUserManagerFactory$JpsUserManagerFactoryI.create(JpsUserManagerFactory.java:252)
    at com.evermind.server.deployment.UserManagerConfig$JAZN.construct(UserManagerConfig.java:635)
    at com.evermind.server.deployment.UserManagerConfig.delegatee(UserManagerConfig.java:253)
    at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
    at com.evermind.security.IndirectUserManager.getAdminUser(IndirectUserManager.java:126)
    at com.evermind.server.XMLApplicationServerConfig.setPassword(XMLApplicationServerConfig.java:3157)
    at com.evermind.server.XMLApplicationServerConfig.<init>(XMLApplicationServerConfig.java:244)
    at com.evermind.server.ApplicationServer.createConfig(ApplicationServer.java:648)
    at oracle.oc4j.server.ServerFactory$Worker.prepareConfig(ApplicationServerFactory.java:201)
    at oracle.oc4j.server.ServerFactory$Worker.start(ApplicationServerFactory.java:220)
    at oracle.oc4j.server.ServerFactory$Worker.run(ApplicationServerFactory.java:235)
    at java.lang.Thread.run(Thread.java:595)
    1/02/2008 10:03:55 AM oracle.oc4j.util.SystemLog logNoStack
    GRAVE: Server exiting: ApplicationServer entered state FAILED_IN_CONFIG
    Process exited with exit code 1.
    when i Run the EJBClient:
    "C:\Archivos de programa\JDeveloper 11g\jdk\bin\javaw.exe" -client -classpath "C:\HR_EJB_JPA_App\.adf;C:\HR_EJB_JPA_App\EJBModel\classes;C:\Archivos de programa\JDeveloper 11g\lib\java\shared\oracle.toplink\11.1.1.0.0\toplink-core.jar;C:\Archivos de programa\JDeveloper 11g\lib\java\shared\oracle.toplink.ojdbc\11.1.1.0.0\toplink-ojdbc.jar;C:\Archivos de programa\JDeveloper 11g\lib\java\internal\toplink-oc4j.jar;C:\Archivos de programa\JDeveloper 11g\lib\java\internal\toplink-agent.jar;C:\Archivos de programa\JDeveloper 11g\lib\java\shared\oracle.toplink\11.1.1.0.0\antlr.jar;C:\Archivos de programa\JDeveloper 11g\j2ee\home\lib\persistence.jar;C:\Archivos de programa\JDeveloper 11g\lib\xmlparserv2.jar;C:\Archivos de programa\JDeveloper 11g\lib\xml.jar;C:\Archivos de programa\JDeveloper 11g\j2ee\home\lib\ejb.jar;C:\Documents and Settings\damacelo\Datos de programa\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\.client;C:\Archivos de programa\JDeveloper 11g\j2ee\home\oc4j.jar;C:\Archivos de programa\JDeveloper 11g\j2ee\home\oc4jclient.jar;C:\Archivos de programa\JDeveloper 11g\j2ee\home\lib\oc4j-internal.jar;C:\Archivos de programa\JDeveloper 11g\opmn\lib\optic.jar" -Dhttp.proxyHost=10.2.0.1 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=10.2.2.117|127.0.0.1|*.10.2.*|*.dinamotos.com|www.etesa.com|*.intranet|*.dinamo|*.etesa -Dhttps.proxyHost=10.2.0.1 -Dhttps.proxyPort=3128 -Dhttps.nonProxyHosts=10.2.2.117|127.0.0.1|*.10.2.*|*.dinamotos.com|www.etesa.com|*.intranet|*.dinamo|*.etesa oracle.SessionEJBClient
    javax.naming.CommunicationException: Connection refused: connect [Root exception is java.net.ConnectException: Connection refused: connect]
    at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:313)
    at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:64)
    at javax.naming.InitialContext.lookup(InitialContext.java:351)
    at oracle.SessionEJBClient.main(SessionEJBClient.java:13)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:519)
    at java.net.Socket.connect(Socket.java:469)
    at java.net.Socket.<init>(Socket.java:366)
    at java.net.Socket.<init>(Socket.java:208)
    at com.evermind.server.rmi.RMIClientConnection.createSocket(RMIClientConnection.java:756)
    at oracle.oc4j.rmi.ClientSocketRmiTransport.createNetworkConnection(ClientSocketRmiTransport.java:60)
    at oracle.oc4j.rmi.ClientRmiTransport.connectToServer(ClientRmiTransport.java:95)
    at oracle.oc4j.rmi.ClientSocketRmiTransport.connectToServer(ClientSocketRmiTransport.java:70)
    at com.evermind.server.rmi.RMIClientConnection.connect(RMIClientConnection.java:720)
    at com.evermind.server.rmi.RMIClientConnection.sendLookupRequest(RMIClientConnection.java:252)
    at com.evermind.server.rmi.RMIClientConnection.lookup(RMIClientConnection.java:235)
    at com.evermind.server.rmi.RMIClient.lookup(RMIClient.java:302)
    ... 3 more
    Process exited with exit code 0.
    Anybody can help Me???
    Thanks.

    I JCRuiz
    the error now is:
    [TopLink/JPA Client] Adding Java options: -javaagent:C:\JDeveloper11g\lib\java\internal\toplink-agent.jar
    C:\JDeveloper11g\jdk\bin\javaw.exe -client -classpath "C:\MiPrimeraAplicacion\.adf;C:\MiPrimeraAplicacion\ModeloEJB\classes;C:\JDeveloper11g\lib\java\shared\oracle.toplink\11.1.1.0.0\toplink-core.jar;C:\JDeveloper11g\lib\java\shared\oracle.toplink.ojdbc\11.1.1.0.0\toplink-ojdbc.jar;C:\JDeveloper11g\lib\java\internal\toplink-oc4j.jar;C:\JDeveloper11g\lib\java\internal\toplink-agent.jar;C:\JDeveloper11g\lib\java\shared\oracle.toplink\11.1.1.0.0\antlr.jar;C:\JDeveloper11g\j2ee\home\lib\persistence.jar;C:\JDeveloper11g\lib\xmlparserv2.jar;C:\JDeveloper11g\lib\xml.jar;C:\JDeveloper11g\j2ee\home\lib\ejb.jar;C:\Documents and Settings\damacelo\Datos de programa\JDeveloper\system11.1.1.0.22.47.96\o.j2ee\embedded-oc4j\.client;C:\JDeveloper11g\j2ee\home\oc4j.jar;C:\JDeveloper11g\j2ee\home\oc4jclient.jar;C:\JDeveloper11g\j2ee\home\lib\oc4j-internal.jar;C:\JDeveloper11g\opmn\lib\optic.jar;C:\JDeveloper11g\jlib\trinidad-api.jar;C:\JDeveloper11g\jlib\trinidad-impl.jar;C:\JDeveloper11g\lib\java\shared\oracle.jsf\1.2\jsf-api.jar;C:\JDeveloper11g\lib\java\shared\oracle.jsf\1.2\jsf-ri.jar;C:\JDeveloper11g\lib\java\shared\oracle.jsf\1.2\sun-commons-beanutils.jar;C:\JDeveloper11g\lib\java\shared\oracle.jsf\1.2\sun-commons-collections.jar;C:\JDeveloper11g\lib\java\shared\oracle.jsf\1.2\sun-commons-digester.jar;C:\JDeveloper11g\lib\java\shared\oracle.jsf\1.2\sun-commons-logging.jar;C:\JDeveloper11g\lib\java\shared\oracle.jstl\1.2\jstl-api-1_2.jar;C:\JDeveloper11g\jlib\adf-richclient-api-11.jar;C:\JDeveloper11g\jlib\adf-richclient-impl-11.jar;C:\JDeveloper11g\BC4J\lib\adf-share-support.jar;C:\JDeveloper11g\BC4J\lib\adf-share-ca.jar;C:\JDeveloper11g\BC4J\lib\adf-share-base.jar;C:\JDeveloper11g\jlib\identitystore.jar;C:\JDeveloper11g\lib\java\api\jaxb-api.jar;C:\JDeveloper11g\lib\java\api\jsr173_api.jar;C:\JDeveloper11g\j2ee\home\lib\activation.jar;C:\JDeveloper11g\lib\java\shared\sun.jaxb\2.0\jaxb-xjc.jar;C:\JDeveloper11g\lib\java\shared\sun.jaxb\2.0\jaxb-impl.jar;C:\JDeveloper11g\lib\java\shared\sun.jaxb\2.0\jaxb1-impl.jar;C:\JDeveloper11g\webcenter\jlib\relationship-service-taglib.jar;C:\JDeveloper11g\adfp\lib\pageeditor.jar;C:\JDeveloper11g\adfp\lib\pageeditor-ext-taskflow.jar;C:\JDeveloper11g\adfp\lib\pageeditor-ext-portlet.jar;C:\JDeveloper11g\adfdt\lib\adf-transactions-dt.jar;C:\JDeveloper11g\adfdt\lib\adf-dt-at-rt.jar;C:\JDeveloper11g\adfc\lib\adf-pageflow-dtrt.jar;C:\JDeveloper11g\adfdt\lib\adf-faces-databinding-dt-core.jar;C:\JDeveloper11g\adfdt\lib\adf-view-databinding-dt-core.jar;C:\JDeveloper11g\jdev\lib\velocity-dep-1.3.jar;C:\JDeveloper11g\jlib\adf-faces-databinding-rt.jar;C:\JDeveloper11g\BC4J\lib\adfm.jar;C:\JDeveloper11g\BC4J\jlib\adfui.jar;C:\JDeveloper11g\BC4J\lib\groovy-all-1.0.jar;C:\JDeveloper11g\jlib\ojmisc.jar;C:\JDeveloper11g\jlib\commons-el.jar;C:\JDeveloper11g\jlib\jsp-el-api.jar;C:\JDeveloper11g\jlib\oracle-el.jar;C:\JDeveloper11g\BC4J\lib\adfshare.jar;C:\JDeveloper11g\adfdt\lib\adfdt_common.jar;C:\JDeveloper11g\BC4J\lib\db-ca.jar;C:\JDeveloper11g\jlib\jdev-cm.jar;C:\JDeveloper11g\j2ee\home\lib\ojsp.jar;C:\JDeveloper11g\j2ee\home\lib\servlet.jar;C:\JDeveloper11g\j2ee\home\lib\el-ri.jar;C:\JDeveloper11g\jdev\lib\ojc.jar;C:\JDeveloper11g\mds\lib\mdsrt.jar;C:\JDeveloper11g\adfrc\lib\rcsrt.jar;C:\JDeveloper11g\adfrc\lib\jr_dav.jar;C:\JDeveloper11g\adfrc\lib\rcv.jar;C:\JDeveloper11g\adfp\lib\custComps.jar;C:\JDeveloper11g\adfp\lib\portlet-client-adf.jar;C:\JDeveloper11g\adfp\lib\portlet-client-rc.jar;C:\JDeveloper11g\adfp\lib\adfp-portletdt-share.jar;C:\JDeveloper11g\adfp\lib\portlet-client-core.jar;C:\JDeveloper11g\adfp\lib\portlet-client-mds.jar;C:\JDeveloper11g\adfp\lib\portlet-client-web.jar;C:\JDeveloper11g\adfp\lib\portlet-client-wsrp.jar;C:\JDeveloper11g\adfp\lib\tidy.jar;C:\JDeveloper11g\adfp\lib\wce.jar;C:\JDeveloper11g\adfp\lib\wsrp-types.jar;C:\JDeveloper11g\adfp\lib\wsrp-jaxb.jar;C:\JDeveloper11g\adfp\lib\namespace.jar;C:\JDeveloper11g\jlib\adf-faces-changemanager-rt.jar;C:\JDeveloper11g\jlib\facesconfigmodel.jar;C:\JDeveloper11g\jlib\taglib.jar;C:\JDeveloper11g\jlib\jdev-el.jar;C:\JDeveloper11g\jlib\xmlef.jar;C:\JDeveloper11g\jdbc\lib\ojdbc5dms.jar;C:\JDeveloper11g\jlib\commons-cli-1.0.jar;C:\JDeveloper11g\jlib\share.jar;C:\JDeveloper11g\jlib\dms.jar;C:\JDeveloper11g\j2ee\home\lib\oc4j-unsupported-api.jar;C:\JDeveloper11g\rdbms\jlib\xdb.jar;C:\JDeveloper11g\lib\java\api\cache.jar;C:\JDeveloper11g\jlib\ojdl.jar;C:\JDeveloper11g\j2ee\home\lib\pcl.jar;C:\JDeveloper11g\ucp\lib\ucp.jar;C:\JDeveloper11g\lib\java\shared\oracle.javatools\11.1.1.0.0\dafrt.jar;C:\JDeveloper11g\lib\java\shared\oracle.javatools\11.1.1.0.0\javatools-nodeps.jar;C:\JDeveloper11g\adfp\lib\custComps-skin.jar;C:\JDeveloper11g\j2ee\home\lib\jms.jar;C:\JDeveloper11g\rdbms\jlib\aqapi.jar;C:\JDeveloper11g\j2ee\home\lib\jta.jar;C:\JDeveloper11g\webcenter\jlib\tagging-taglib.jar;C:\JDeveloper11g\BC4J\lib\adfmweb.jar;C:\JDeveloper11g\jakarta-taglibs\commons-beanutils-1.6.1\commons-beanutils.jar;C:\JDeveloper11g\jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar;C:\JDeveloper11g\jakarta-taglibs\commons-collections-2.1\commons-collections.jar;C:\JDeveloper11g\jakarta-struts\lib\antlr.jar;C:\JDeveloper11g\jakarta-struts\lib\commons-beanutils.jar;C:\JDeveloper11g\jakarta-struts\lib\commons-collections.jar;C:\JDeveloper11g\jakarta-struts\lib\commons-digester.jar;C:\JDeveloper11g\jakarta-struts\lib\commons-fileupload.jar;C:\JDeveloper11g\jakarta-struts\lib\commons-logging.jar;C:\JDeveloper11g\jakarta-struts\lib\commons-validator.jar;C:\JDeveloper11g\jakarta-struts\lib\jakarta-oro.jar;C:\JDeveloper11g\jakarta-struts\lib\struts.jar;C:\JDeveloper11g\webcenter\jlib\command-api.jar;C:\JDeveloper11g\webcenter\jlib\command-spi.jar;C:\JDeveloper11g\webcenter\jlib\generalsettings-model.jar;C:\JDeveloper11g\webcenter\jlib\lifecycle-asctl.jar;C:\JDeveloper11g\webcenter\jlib\lifecycle-client.jar;C:\JDeveloper11g\webcenter\jlib\lifecycle-model.jar;C:\JDeveloper11g\webcenter\jlib\lifecycle-service.jar;C:\JDeveloper11g\webcenter\jlib\lock-service-model.jar;C:\JDeveloper11g\webcenter\jlib\search-api.jar;C:\JDeveloper11g\webcenter\jlib\search-adapter.jar;C:\JDeveloper11g\webcenter\jlib\search-model.jar;C:\JDeveloper11g\webcenter\jlib\search_client.jar;C:\JDeveloper11g\webcenter\jlib\scope-service-model.jar;C:\JDeveloper11g\webcenter\jlib\security-extension.jar;C:\JDeveloper11g\webcenter\jlib\serviceframework.jar;C:\JDeveloper11g\webcenter\jlib\wc-concurrent.jar;C:\JDeveloper11g\BC4J\lib\adfsharembean.jar;C:\JDeveloper11g\j2ee\home\lib\xmlparserv2.jar;C:\JDeveloper11g\webservices\lib\saaj-api.jar;C:\JDeveloper11g\webservices\lib\orasaaj.jar;C:\JDeveloper11g\j2ee\home\lib\http_client.jar;C:\JDeveloper11g\webcenter\jlib\service-framework-taglib.jar;C:\JDeveloper11g\webcenter\jlib\serviceframework-view.jar;C:\JDeveloper11g\webcenter\jlib\rtc-api.jar;C:\JDeveloper11g\webcenter\jlib\rtc-model.jar;C:\JDeveloper11g\webcenter\jlib\rtc-skin.jar;C:\JDeveloper11g\webcenter\jlib\rtc-adapters-lcs.jar;C:\JDeveloper11g\webcenter\jlib\rtc-lcs-wsclient.jar;C:\JDeveloper11g\webcenter\jlib\log4j-1.2.8.jar;C:\JDeveloper11g\webcenter\jlib\rtc-taglib.jar;C:\JDeveloper11g\webcenter\jlib\rtc-view.jar;C:\JDeveloper11g\webcenter\jlib\rtc-adapters-ocms.jar;C:\JDeveloper11g\webcenter\jlib\buddylistmanager-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\buddylistmanagerimpl-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\presencerules-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\parlayxcommon-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\parlayxwsstubs-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\resourcelist-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\xdmc-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\xdmcimpl-4.2.0-393.jar;C:\JDeveloper11g\webcenter\jlib\commons-httpclient.jar;C:\JDeveloper11g\webcenter\jlib\commons-codec-1.3.jar;C:\JDeveloper11g\webcenter\jlib\collab-share.jar;C:\JDeveloper11g\adfdi\lib\adf-desktop-integration.jar;C:\JDeveloper11g\webservices\lib\wsclient.jar" -javaagent:C:\JDeveloper11g\lib\java\internal\toplink-agent.jar -Dhttp.proxyHost=10.2.0.1 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=10.2.2.117|127.0.0.1|*.10.2.*|*.dinamotos.com|www.etesa.com|*.intranet|*.dinamo|*.etesa -Dhttps.proxyHost=10.2.0.1 -Dhttps.proxyPort=3128 -Dhttps.nonProxyHosts=10.2.2.117|127.0.0.1|*.10.2.*|*.dinamotos.com|www.etesa.com|*.intranet|*.dinamo|*.etesa oracle.HRFacadeClient
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializerAgent.initializeFromAgent(JavaSECMPInitializerAgent.java:34)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializerAgent.premain(JavaSECMPInitializerAgent.java:27)
         ... 5 more
    Caused by: javax.persistence.PersistenceException: Exception [TOPLINK-28018] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [ModeloEJB] failed.
    Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while loading class: modeloejb.Departments to check whether it implements @Entity, @Embeddable, or @MappedSuperclass.
    Internal Exception: java.lang.ClassNotFoundException: modeloejb.Departments
         at oracle.toplink.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:790)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializer.callPredeploy(JavaSECMPInitializer.java:119)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializer.initPersistenceUnits(JavaSECMPInitializer.java:187)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializer.initialize(JavaSECMPInitializer.java:202)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializer.initializeFromAgent(JavaSECMPInitializer.java:219)
         ... 11 more
    Caused by: Exception [TOPLINK-28018] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.EntityManagerSetupException
    Exception Description: Predeployment of PersistenceUnit [ModeloEJB] failed.
    Internal Exception: Exception [TOPLINK-30007] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while loading class: modeloejb.Departments to check whether it implements @Entity, @Embeddable, or @MappedSuperclass.
    Internal Exception: java.lang.ClassNotFoundException: modeloejb.Departments
         at oracle.toplink.exceptions.EntityManagerSetupException.predeployFailed(EntityManagerSetupException.java:196)
         ... 16 more
    Caused by: Exception [TOPLINK-30007] (Oracle TopLink - 11g Technology Preview 3 (11.1.1.0.0) (Build 071207)): oracle.toplink.exceptions.PersistenceUnitLoadingException
    Exception Description: An exception was thrown while loading class: modeloejb.Departments to check whether it implements @Entity, @Embeddable, or @MappedSuperclass.
    Internal Exception: java.lang.ClassNotFoundException: modeloejb.Departments
         at oracle.toplink.exceptions.PersistenceUnitLoadingException.exceptionLoadingClassWhileLookingForAnnotations(PersistenceUnitLoadingException.java:126)
         at oracle.toplink.internal.ejb.cmp3.persistence.PersistenceUnitProcessor.loadClass(PersistenceUnitProcessor.java:231)
         at oracle.toplink.internal.ejb.cmp3.metadata.MetadataProcessor.processPersistenceUnitClasses(MetadataProcessor.java:423)
         at oracle.toplink.internal.ejb.cmp3.metadata.MetadataProcessor.processPersistenceUnitClasses(MetadataProcessor.java:376)
         at oracle.toplink.internal.ejb.cmp3.persistence.PersistenceUnitProcessor.processORMetadata(PersistenceUnitProcessor.java:258)
         at oracle.toplink.internal.ejb.cmp3.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:747)
         ... 15 more
    FATAL ERROR in native method: processing of -javaagent failed
    Caused by: java.lang.ClassNotFoundException: modeloejb.Departments
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at oracle.toplink.internal.ejb.cmp3.JavaSECMPInitializer$TempEntityLoader.loadClass(JavaSECMPInitializer.java:355)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at oracle.toplink.internal.ejb.cmp3.persistence.PersistenceUnitProcessor.loadClass(PersistenceUnitProcessor.java:228)
         ... 19 more
    Exception in thread "main" Process exited with exit code 1.

Maybe you are looking for