Can not lookup EJB

11g
When i run a unit test, and lookup the remote interface. ClassNotFoundException. From JNDI tree, i can find the remote interface. Please find the details trace, thanks for your help.
at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface(RemoteBusinessIntfGenerator.java:84)
     at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject(RemoteBusinessIntfProxy.java:211)
     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:597)
     at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
     at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
     at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
     at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197)
     at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:564)
     at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193)
     at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
     at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
     at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
     at weblogic.jndi.internal.ServerNamingNode_1031_WLStub.lookup(Unknown Source)
     at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:400)
     at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:388)
     at javax.naming.InitialContext.lookup(InitialContext.java:392)

Hi Saleem Mohammad.
           Thank a lot for your post. I got this idea from your link. The below code work fine.
          try {               
               InitialContext ctx=new InitialContext();
               Object obj= ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
                ClassLoader homeCl = obj.getClass().getClassLoader();
                Class<?> localHome = homeCl.loadClass(HelloManBeanLocalHome.class.getCanonicalName());
                java.lang.reflect.Method method = localHome.getMethod("create");               
                Object homeObj = (Object)method.invoke(obj);
                ClassLoader localCl=homeObj.getClass().getClassLoader();
                Class<?> local = localCl.loadClass(HelloManBeanLocal.class.getCanonicalName());
                Class  args[] = {String.class};
                java.lang.reflect.Method localMethod=local.getMethod("helloMan",args);               
                Object params[]={"Thongie"};
                Object localObj = (Object)localMethod.invoke(homeObj,params);
                lookupText=(String)localObj;               
          } catch (Exception e) {
               // TODO: handle exception
               e.printStackTrace(out);

Similar Messages

  • Can not lookup EJB from another EAR file, the ClassCastException returned

    Hi,
         I try to call EJB module in A.ear from Servlet in another EAR file(B.ear) the ClassCastException returned on the context.lookup() code . So when i create a Dynamic Web Project(With the same code as Servlet in B.ear) and pack it in A.ear(The same EAR file with EJB module), it work fine. I have no idea. Could you please suggest me.
    The ClassCastException : incompatible with interface ..... return on
    HelloManBeanLocalHome home=(HelloManBeanLocalHome) ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
    The entire code is below :
              try {               
                   InitialContext ctx=new InitialContext();
                   HelloManBeanLocalHome home=(HelloManBeanLocalHome) ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
                   HelloManBeanLocal remote=home.create();
                   lookupText=remote.helloMan("Test");
              } catch (Exception e) {
                   // TODO: handle exception
                   e.printStackTrace(out);
    Many Thanks

    Hi Saleem Mohammad.
               Thank a lot for your post. I got this idea from your link. The below code work fine.
              try {               
                   InitialContext ctx=new InitialContext();
                   Object obj= ctx.lookup("localejbs/sap.com/HelloMan_EAR/HelloManBean");
                    ClassLoader homeCl = obj.getClass().getClassLoader();
                    Class<?> localHome = homeCl.loadClass(HelloManBeanLocalHome.class.getCanonicalName());
                    java.lang.reflect.Method method = localHome.getMethod("create");               
                    Object homeObj = (Object)method.invoke(obj);
                    ClassLoader localCl=homeObj.getClass().getClassLoader();
                    Class<?> local = localCl.loadClass(HelloManBeanLocal.class.getCanonicalName());
                    Class  args[] = {String.class};
                    java.lang.reflect.Method localMethod=local.getMethod("helloMan",args);               
                    Object params[]={"Thongie"};
                    Object localObj = (Object)localMethod.invoke(homeObj,params);
                    lookupText=(String)localObj;               
              } catch (Exception e) {
                   // TODO: handle exception
                   e.printStackTrace(out);

  • Can not migrate EJB from WL 5.1 to WL 6.0

    I have followed the procedures for migrating my ejb's from weblogic 5.1
    to weblogic 6.0. I am receiving an error when I try to deploy an ejb
    (java.lang.NoClassDefFoundError). The class it can not find is
    packagename.ejbnameHome. This class is inside of the jar file containing
    the ejb that I am trying to deploy. Any idea what the problem may be?
    Eddie

    Yes you can, I did it. Just remember, Jdev 3.0 is only for OAS 4081 and Oracle 8.1.5, and Jdev 3.1 is for OAS 4082 and Oracle 8.1.6. Don't mix them, you'll run into problems.

  • My servlet can not access  ejb

    hi all
    i write a simple helloword EJB
    i deloy it ok in weblogic7
    when i want to write a servlet to access ejb
    it failed
    should i setting the web.xml or weblogic.xml
    anyone can give me a sample
    thanks a lot
    the error message is
    ####<Sep 21, 2003 11:36:35 PM GMT+08:00> <Error> <HTTP> <kingson> <myserver> <ExecuteThread:
    '9' for queue: 'default'> <kernel identity> <> <101017> <[ServletContext(id=7157216,name=servletCode,context-path=/servletCode)]
    Root cause of ServletException>
    java.lang.NoClassDefFoundError
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
    at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:61)
    at ejbtoServlet.doGet(ejbtoServlet.java:83)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    6650,1-8 99%

    still error!!!!
    i deloy the ejb as a jar file
    [root@kingson applications]# jar tf helloWorldBean.jar
    META-INF/MANIFEST.MF
    META-INF/
    META-INF/weblogic-ejb-jar.xml
    META-INF/ejb-jar.xml
    hello/
    hello/HelloWorldHome.class
    hello/HelloWorldBean.class
    hello/HelloWorld.class
    hello/HelloWorldBean_nru4ls_HomeImplRTD.xml
    hello/HelloWorldBean_nru4ls_EOImplRTD.xml
    hello/HelloWorldBean_nru4ls_EOImpl.class
    hello/HelloWorldBean_nru4ls_Impl.class
    hello/HelloWorldBean_nru4ls_HomeImpl.class
    WLGENERATED
    i also copy the helloClient.jar to the <web>/WEB-INF/classes
    and the <web>/WEB-INF/lib
    but it still not works
    maybe i should know what should be included in the helloClient.jar
    i just copy the
    helloWorld.class
    helloWorldBean.class
    helloWorldHome.class
    and the ejb-jar.xml.weblogic-ejb-jar.xml
    into the helloClient.jar
    also i set the EJB path into the bea system classpath
    so anything error???
    why the servlet not works
    my Swing client can access the EJB
    but the servlet not
    i am exhausted
    "Deepak Vohra" <[email protected]> wrote:
    >
    Copy the HelloWorld.class serlvet to the DefaultWebApp/WEB-INF/classes
    directory.
    In web.xml
    <servlet>
    <servlet-name>
    HelloWorld
    </servlet-name>
    <servlet-class>
    examples.servlets.HelloWorld
    </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>
    HelloWorld
    </servlet-name>
    <url-pattern>
    HelloWorld
    </url-pattern>
    </servlet-mapping>
    "kingson" <[email protected]> wrote:
    hi all
    i write a simple helloword EJB
    i deloy it ok in weblogic7
    when i want to write a servlet to access ejb
    it failed
    should i setting the web.xml or weblogic.xml
    anyone can give me a sample
    thanks a lot
    the error message is
    ####<Sep 21, 2003 11:36:35 PM GMT+08:00> <Error> <HTTP> <kingson> <myserver>
    <ExecuteThread:
    '9' for queue: 'default'> <kernel identity> <> <101017> <[ServletContext(id=7157216,name=servletCode,context-path=/servletCode)]
    Root cause of ServletException>
    java.lang.NoClassDefFoundError
    at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:182)
    at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:61)
    at ejbtoServlet.doGet(ejbtoServlet.java:83)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:945)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:332)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    6650,1-8
    99%

  • Can not deploy VSM1.3 to oc4j10g 10, can not translate EJB QL

    the OS is win2k
    oc4j version is oc4j 10g(10.0.3.0.0)
    started oc4j by java -Ddefault.cmp.pm=native_cmp -jar oc4j.jar
    when deploying vsm, the following EJB QL error:
    deploy-oc4j:
    [java] Error: Deploy error: deploy failed!: ; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instanti
    ationException: Error initializing ejb-module, Exception: Compile error: Error t
    ranslating EJBQL: java.lang.NullPointerException
    [java] com.evermind.client.orion.AdminCommandException: Deploy error: deplo
    y failed!: ; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instanti
    ationException: Error initializing ejb-module, Exception: Compile error: Error t
    ranslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.client.orion.DeployCommand.execute(DeployCommand
    .java:95)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] java.rmi.RemoteException: deploy failed!: ; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instanti
    ationException: Error initializing ejb-module, Exception: Compile error: Error t
    ranslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FR
    OM_THE_REMOTE_SERVER(RMIConnection.java:908)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnect
    ion.java:802)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(Remote
    InvocationHandler.java:69)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.in
    voke(RecoverableRemoteInvocationHandler.java:22)
    [java] at __Proxy0.deploy(Unknown Source)
    [java] at com.evermind.client.orion.DeployCommand.execute(DeployCommand
    .java:92)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] Caused by: oracle.oc4j.admin.internal.DeployerException: java.lang.I
    nstantiationException: Error initializing ejb-module, Exception: Compile error:
    Error translating EJBQL: java.lang.NullPointerException
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:75)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.internalDeploy(DefaultApplicationServerAdministrator.java:376)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.deploy(DefaultApplicationServerAdministrator.java:276)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:291)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Caused by: java.lang.InstantiationException: Error initializing ejb-
    module, Exception: Compile error: Error translating EJBQL: java.lang.NullPointer
    Exception
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1076)
    [java] at com.evermind.server.Application.postInit(Application.java:688
    [java] at com.evermind.server.Application.setConfig(Application.java:20
    1)
    [java] at com.evermind.server.ApplicationServer.addApplication(Applicat
    ionServer.java:1947)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication
    (ApplicationDeployer.java:382)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(Appli
    cationDeployer.java:134)
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:61)
    [java] ... 10 more
    [java] Caused by: java.lang.InstantiationException: Compile error: Error tr
    anslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1021)
    [java] ... 16 more
    [java] Caused by: com.evermind.compiler.CompilationException: Error transla
    ting EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.compilation.Compilation.translateEjbq
    lQeries(Compilation.java:229)
    [java] at com.evermind.server.ejb.compilation.Compilation.compile(Compi
    lation.java:265)
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:930)
    [java] ... 16 more
    [java] ---- Embedded exception
    [java] oracle.oc4j.admin.internal.DeployerException: java.lang.Instantiatio
    nException: Error initializing ejb-module, Exception: Compile error: Error trans
    lating EJBQL: java.lang.NullPointerException
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:75)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.internalDeploy(DefaultApplicationServerAdministrator.java:376)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.deploy(DefaultApplicationServerAdministrator.java:276)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:291)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Caused by: java.lang.InstantiationException: Error initializing ejb-
    module, Exception: Compile error: Error translating EJBQL: java.lang.NullPointer
    Exception
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1076)
    [java] at com.evermind.server.Application.postInit(Application.java:688
    [java] at com.evermind.server.Application.setConfig(Application.java:20
    1)
    [java] at com.evermind.server.ApplicationServer.addApplication(Applicat
    ionServer.java:1947)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.addApplication
    (ApplicationDeployer.java:382)
    [java] at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(Appli
    cationDeployer.java:134)
    [java] at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.
    java:61)
    [java] ... 10 more
    [java] Caused by: java.lang.InstantiationException: Compile error: Error tr
    anslating EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:1021)
    [java] ... 16 more
    [java] Caused by: com.evermind.compiler.CompilationException: Error transla
    ting EJBQL: java.lang.NullPointerException
    [java] at com.evermind.server.ejb.compilation.Compilation.translateEjbq
    lQeries(Compilation.java:229)
    [java] at com.evermind.server.ejb.compilation.Compilation.compile(Compi
    lation.java:265)
    [java] at com.evermind.server.ejb.EJBContainer.postInit(EJBContainer.ja
    va:930)
    [java] ... 16 more
    [java] Java Result: 1
    [java] Error: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb
    does not exist in application vsm
    [java] com.evermind.client.orion.AdminCommandException: bindWebApp() failed
    !; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb
    does not exist in application vsm
    [java] at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAp
    pCommand.java:31)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] java.rmi.RemoteException: bindWebApp() failed!; nested exception is:
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb
    does not exist in application vsm
    [java] at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FR
    OM_THE_REMOTE_SERVER(RMIConnection.java:908)
    [java] at com.evermind.server.rmi.RMIConnection.invokeMethod(RMIConnect
    ion.java:802)
    [java] at com.evermind.server.rmi.RemoteInvocationHandler.invoke(Remote
    InvocationHandler.java:69)
    [java] at com.evermind.server.rmi.RecoverableRemoteInvocationHandler.in
    voke(RecoverableRemoteInvocationHandler.java:22)
    [java] at __Proxy0.bindWebApp(Unknown Source)
    [java] at com.evermind.client.orion.BindWebAppCommand.execute(BindWebAp
    pCommand.java:28)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.executeCommand(Oc4
    jAdminConsole.java:117)
    [java] at com.evermind.client.orion.Oc4jAdminConsole.main(Oc4jAdminCons
    ole.java:26)
    [java] Caused by: oracle.oc4j.admin.internal.DeployerException: Web module
    VSMWeb does not exist in application vsm
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(We
    bApplicationBinder.java:187)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.bindWebApp(DefaultApplicationServerAdministrator.java:362)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:297)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] ---- Embedded exception
    [java] oracle.oc4j.admin.internal.DeployerException: Web module VSMWeb does
    not exist in application vsm
    [java] at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(We
    bApplicationBinder.java:187)
    [java] at com.evermind.server.administration.DefaultApplicationServerAd
    ministrator.bindWebApp(DefaultApplicationServerAdministrator.java:362)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
    sorImpl.java:39)
    [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
    hodAccessorImpl.java:25)
    [java] at java.lang.reflect.Method.invoke(Method.java:324)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:86)
    [java] at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.jav
    a:56)
    [java] at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.r
    un(ReleasableResourcePooledExecutor.java:297)
    [java] at java.lang.Thread.run(Thread.java:534)
    [java] Java Result: 17

    I have a 10.1.2 app that deploys and binds just fine,
    but when I try to deploy the same app on a 10.1.3
    version it seems to deploy just fine but I can not
    access the application. When I go into the web
    frontend of the 10.1.3 server I see my app is
    deployed, status is shown as green but when I click
    on the web app it says that no JSPs were found also
    it is not bound. I deploy using the auto deploy
    feature.Can you check and see that the http-web-site.xml has a valid <web-app> entry for your web module?
    Have you tried to access a specific JSP and see the same error? Or are you trying to access just the root context?
    Can you try deploying the application using the deployment function in Application Server Control (http://host:1810) and see if it works and/or reports any error messages?
    -steve-

  • I can't lookup EJB (3.0) in WebLogic 12 using ENC

    I have a simple application divided in 2 modules:
    HolaMundo - Servlet component
    SimpleEJB - EJB Component
    The EJB Component use EJB 3.0. I created a local business interface with one method. A stateless EJB that implement that interface. And I use the ejb-jar.xml for declare it.
    And a Servlet that use the EJB.
    In Glassfish or Tomee this way for working with EJB works, but i don't understand why it doesn't work in WebLogic 12...
    When i try to access to the servlet, i get an error. this is the error:
    javax.naming.NameNotFoundException: While trying to look up /app/SimpleEJB/Example!com.edwin.ejb.ExampleLocal in /app/webapp/HolaMundo.war/1051995086.; remaining name '/app/SimpleEJB/Example!com/edwin/ejb/ExampleLocal'
      at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1180)
      at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:146)
    Servlet:
    package servlet;
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import com.edwin.ejb.ExampleLocal;
    public class EJB extends HttpServlet {
       private static final long serialVersionUID = 1L;
       @Override
       protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1)
       throws ServletException, IOException {
       PrintWriter out = arg1.getWriter();
       ExampleLocal el2;
       try {
      el2 = (ExampleLocal) new InitialContext()
       .lookup("java:app/SimpleEJB/Example!com.edwin.ejb.ExampleLocal");
       out.println("EJBBBB: " + el2.nombre());
       } catch (NamingException e) {
      e.printStackTrace();
    Local business interface:
    package com.edwin.ejb;
    public interface ExampleLocal {
        public String nombre();
    EJB Stateless:
    package com.edwin.ejb;
    public class Example implements ExampleLocal{
        @Override
        public String nombre() {
            return "Edwin";
    ejb-jar.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
      <display-name>SimpleEJB </display-name>
      <enterprise-beans>
        <session>
            <ejb-name>Example</ejb-name>
            <business-local>com.edwin.ejb.ExampleLocal</business-local>
            <ejb-class>com.edwin.ejb.Example</ejb-class>
            <session-type>Stateless</session-type>
        </session>
      </enterprise-beans>
    </ejb-jar>

    Both answers did not work. I do not understand why it did not work because in other Java EE Servers it works.
    My JNDI Tree (Screenshot):
    http://oi58.tinypic.com/vs1jjd.jpg
    However, i could get the EJB when i use the Global ENC, but i got a Casting Exception...
    Eg:
    try {
      ej = (EjLocal) new InitialContext().lookup("java:global.EjemploEJB.Ej!stateless.EjLocal");
      out.print("EJ: "+ej.ej());
    } catch (NamingException e) {
      e.printStackTrace();
    Output:
    java.lang.ClassCastException: stateless.Ej_1aafe_EjLocalImpl cannot be cast to stateless.EjLocal
    at servlet.Ejemplo.doGet(Ejemplo.java:33)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731).....
    There is a strange value in the EJB's JNDI Tree:
    Header 1
    Header 2
    Binding Name:
    java:global.EjemploEJB.Ej!stateless.EjLocal
    Class:
    stateless.Ej_1aafe_EjLocalImpl
    Hash Code:
    2021087981
    toString Results:
    stateless.Ej_1aafe_EjLocalImpl@78775aed

  • Help!! Can not find ejb from servlet!!!

    I have tried several days...here is my code to look up ejb..
    Context context = new InitialContext();
    Object ref = context.lookup("CustomerFacade");
    //Object ref = context.lookup("CustomerFacade");
    facadeHome = (CustomerFacadeHome) PortableRemoteObject.narrow(ref, CustomerFacadeHome.class);
    facade = facadeHome.create();
    do I need a orion-ejb-jar.xml? oc4j will generate it, right?
    Do I need a ejb-ref tag in the web.xml file? I've tried to use JDev to develop an example..the file it generates doesn't have ejb-ref tag at all..however..it works...
    the problem is that I want to port an app from JBoss to OC4J....so I cannot use JDev to develop from scratch...
    Please help me~~~I am stuck for several days...

    Next step it to restore to factory defaults in case there is some corruption which is now in the backup. If that does not work then you may have a hardware problem.

  • Can not lookup jms resource

    platform is java application server PE 8, jms queue resource name is jms/queue, built using admin console.
    A jsp file lookup the queue resource:
    <%
    InitialContext ctx=new InitialContext();
    Object o1=ctx.lookup("java:comp/env/jms/factory");
    Object o2=ctx.lookup("java:comp/env/jms/queue");
    %>
    o1 lookup successed,but o2 lookup failed.
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: serial context communication ex
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:830)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:763)
         org.apache.jsp.testjms_jsp._jspService(testjms_jsp.java:74)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    javax.naming.CommunicationException: serial context communication ex [Root exception is com.sun.enterprise.resource.PoolingException]
         com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:317)
         javax.naming.InitialContext.lookup(InitialContext.java:351)
         org.apache.jsp.testjms_jsp._jspService(testjms_jsp.java:51)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    com.sun.enterprise.resource.PoolingException
         com.sun.enterprise.connectors.AdministeredObjectResource.createAdministeredObject(AdministeredObjectResource.java:143)
         com.sun.enterprise.naming.factory.AdministeredObjectFactory.getObjectInstance(AdministeredObjectFactory.java:89)
         javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
         javax.naming.InitialContext.lookup(InitialContext.java:351)
         org.apache.jsp.testjms_jsp._jspService(testjms_jsp.java:51)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.

    sorry!
    this is beacause the imq.jar was not included in the class-path of the project!

  • How can I build EJB archive after changing java files?

    hello,
    I changed java beans file, and tried to build jar file again, then the "build EJB archive" context menu is disabled so I can not make EJB jar file!
    So frustrated.. NWDS recognizes the changes in the java files , right? How come there 's no Build menu..
    Is there any pre-requisite to enable the menu?
    I have no idea how I can build jar file..
    Please give me a advice.. Thanks~!

    I think that in order to create a RPM, you'd need to
    use some C.Nope - the RPM is all about packaging and the "magic" x.spec file. You can have anything you want in the RPM, but you have to use RPM tools to build the .rpm file. One of the features is that you can also indicate (via "install" scripts) modifications to other files or the filesystem to support the installation of whatever's in the RPM.

  • Could not lookup PortalManagerHome in the JNDI tree using EJB reference java:comp/env/ejb/PortalManager

    Hi
    I am just a starter on WLPortal.
    I have created a barebone Application from scratch. I have synchronized it properly
    from EBCC to WLP. But When I am trying to access the home page of my application,
    I am getting from stack trace -
    <Nov 6, 2002 5:37:59 PM IST> <Error> <PortalAppflow> <Could not lookup PortalManagerHome
    in the JNDI tree using EJB reference java:comp/env/ejb/PortalManager.
    javax.naming.NameNotFoundException: Unable to resolve comp/env/ejb/PortalManager
    Resolved: 'comp/env' Unresolved:'ejb' ; remaining name 'PortalManager'
    at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:802)
    at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:209)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:173)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:181)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
    at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:36)
    at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:124)
    at javax.naming.InitialContext.lookup(InitialContext.java:350)
    at com.bea.p13n.util.JndiHelper.lookupNarrow(JndiHelper.java:96)
    at com.bea.portal.appflow.PortalAppflowHelper.<clinit>(PortalAppflowHelper.java:64)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.init(PortalWebflowServlet.java:78)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:700)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:643)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:588)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:368)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:215)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2459)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    <Nov 6, 2002 5:37:59 PM IST> <Error> <HTTP> <[WebAppServletContext(19695286,FirstWebApp,/FirstWebApp)]
    Servlet failed with Exception
    java.lang.NullPointerException:
    at com.bea.portal.appflow.PortalAppflowHelper.createPortalManager(PortalAppflowHelper.java:82)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.setupPortalRequest(PortalWebflowServlet.java:187)
    at com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWebflowServlet.java:99)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:215)
    at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:112)
    at jsp_servlet.__index._jspService(__index.java:92)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:304)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2459)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    When I decompiled the class PortalAppflowHelper, I found a static block in it,
    which was as under-
    static
    debug = Debug.getInstance(com.bea.portal.appflow.PortalAppflowHelper.class);
    try
    if(debug.ON)
    debug.out("Looking up PortalManagerHome using EJB reference java:comp/env/ejb/PortalManager");
    portalManagerHome = (PortalManagerHome)JndiHelper.lookupNarrow("java:comp/env/ejb/PortalManager",
    com.bea.portal.manager.ejb.PortalManagerHome.class);
    if(debug.ON)
    debug.out("Successfully retrieved PortalManagerHome " + portalManagerHome);
    catch(Exception e)
    PortalAppflowLogger.errorFindingPortalManagerHome("java:comp/env/ejb/PortalManager",
    e);
    I have checked the PortalManager's JNDI name on WLConsole. Its ${APPNAME}.BEA_portal.PortalManager.
    Should I change it?
    When I tried to change it, I started getting other weird errors.
    Thanks
    Neeraj Hans

    Neeraj -
    The Portal framework code (including PortalAppflowHelper) uses ejb
    references to find the PortalManager (and other EJBs) from servlets and
    taglibs; that is what is signified by the java:comp/env/... name.
    Since you built your webapp from scratch (instead of using the portal
    wizard), you will need to make sure the you have the appropriate
    <ejb-ref> entries in your web.xml, and the corresponding
    <ejb-reference-description> entries in your weblogic.xml. By default,
    you will need at least mappings for:
    - ejb/PortalManager
    - ejb/UserManager
    - ejb/GroupManager
    - ejb/PipelineExecutor
    - ejb/EventService
    See either the resulting webapp from using the portal wizard or
    BEA_HOME/weblogic700/samples/portal/sampleportalDomain/beaApps/sampleportal/sampleportal/WEB-INF
    for example syntax.
    Greg
    Neeraj Hans wrote:
    Hi
    I am just a starter on WLPortal.
    I have created a barebone Application from scratch. I have
    synchronized it properly
    from EBCC to WLP. But When I am trying to access the home page of my
    application,
    I am getting from stack trace -
    <Nov 6, 2002 5:37:59 PM IST> <Error> <PortalAppflow> <Could not lookup
    PortalManagerHome
    in the JNDI tree using EJB reference java:comp/env/ejb/PortalManager.
    javax.naming.NameNotFoundException: Unable to resolve
    comp/env/ejb/PortalManager
    Resolved: 'comp/env' Unresolved:'ejb' ; remaining name 'PortalManager'
    at <stack trace lines snipped>
    When I decompiled the class PortalAppflowHelper, I found a static
    block in it,
    which was as under-
    static
    debug =
    Debug.getInstance(com.bea.portal.appflow.PortalAppflowHelper.class);
    try
    if(debug.ON)
    debug.out("Looking up PortalManagerHome using EJB
    reference java:comp/env/ejb/PortalManager");
    portalManagerHome =
    (PortalManagerHome)JndiHelper.lookupNarrow("java:comp/env/ejb/PortalManager",
    com.bea.portal.manager.ejb.PortalManagerHome.class);
    if(debug.ON)
    debug.out("Successfully retrieved PortalManagerHome "
    + portalManagerHome);
    catch(Exception e)
    PortalAppflowLogger.errorFindingPortalManagerHome("java:comp/env/ejb/PortalManager",
    e);
    I have checked the PortalManager's JNDI name on WLConsole. Its
    ${APPNAME}.BEA_portal.PortalManager.
    Should I change it?
    When I tried to change it, I started getting other weird errors.
    Thanks
    Neeraj Hans

  • Can not perform RFC  lookup

    Hi All,
    We are getting below error in doing testing in PI mapping.We are calling a RFC function module in PI.
    Cannot perform RFC lookup com.sap.aii.mapping.api.StreamTransformationException: Cannot perform RFC lookup at com.sap.aii.mappingtool.flib7.RfcLookup.cacheMore(RfcLookup.java:105) at com.sap.aii.mappingtool.tf7.rt.AMultiResIterator$MultiOutIterator.gotoNextContext(AMultiResIterator.java:95) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:299) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.processNode(AMappingProgram.java:395) at com.sap.aii.mappingtool.tf7.AMappingProgram.start(AMappingProgram.java:482) at com.sap.aii.mappingtool.tf7.Transformer.start(Transformer.java:133) at com.sap.aii.mappingtool.tf7.AMappingProgram.transform(AMappingProgram.java:612) at com.sap.aii.ibrep.server.mapping.exec.ExecuteXiMappingCommand.transformInternal(ExecuteXiMappingCommand.java:197) at com.sap.aii.ibrep.server.mapping.exec.ExecuteXiMappingCommand.execute(ExecuteXiMappingCommand.java:94) at com.sap.aii.ib.server.mapping.exec.CommandManager.execute(CommandManager.java:43) at com.sap.aii.ibrep.server.mapping.ServerMapService.execute(ServerMapService.java:40) at com.sap.aii.ibrep.server.mapping.MapServiceBean.execute(MapServiceBean.java:40) at sun.reflect.GeneratedMethodAccessor743.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:43) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16) at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177) at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133) at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164) at $Proxy1621.execute(Unknown Source) at sun.reflect.GeneratedMethodAccessor742.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sap.engine.services.rmi_p4.P4DynamicSkeleton.dispatch(P4DynamicSkeleton.java:234) 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:872) 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.aii.mapping.lookup.LookupException: Exception during processing the payload. Error when calling an adapter by using the communication channel BigWRFCReceiver (Party: , Service: KD3_300, Object ID: 4dcd47e22ff0367ea3779fe0e9dc7fd2) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=KD3.AP.CSPLC.ORG SYSNR=22 GWHOST=KD3.AP.CSPLC.ORG GWSERV=sapgw22 PCS=1  LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.227.148.123:sapgw22' not reached TIME Fri Aug 6 02:11:46 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 2778 DETAIL NiPConnect: 10.227.148.123:3322 SYSTEM CALL connect ERRNO 239 ERRNO TEXT Connection refused COUNTER 27 '. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=KD3.AP.CSPLC.ORG SYSNR=22 GWHOST=KD3.AP.CSPLC.ORG GWSERV=sapgw22 PCS=1  LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.227.148.123:sapgw22' not reached TIME Fri Aug 6 02:11:46 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 2778 DETAIL NiPConnect: 10.227.148.123:3322 SYSTEM CALL connect ERRNO 239 ERRNO TEXT Connection refused COUNTER 27 '. com.sap.aii.mapping.lookup.LookupException: Error when calling an adapter by using the communication channel BigWRFCReceiver (Party: , Service: KD3_300, Object ID: 4dcd47e22ff0367ea3779fe0e9dc7fd2) XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=KD3.AP.CSPLC.ORG SYSNR=22 GWHOST=KD3.AP.CSPLC.ORG GWSERV=sapgw22 PCS=1  LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.227.148.123:sapgw22' not reached TIME Fri Aug 6 02:11:46 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 2778 DETAIL NiPConnect: 10.227.148.123:3322 SYSTEM CALL connect ERRNO 239 ERRNO TEXT Connection refused COUNTER 27 '. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=KD3.AP.CSPLC.ORG SYSNR=22 GWHOST=KD3.AP.CSPLC.ORG GWSERV=sapgw22 PCS=1  LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.227.148.123:sapgw22' not reached TIME Fri Aug 6 02:11:46 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 2778 DETAIL NiPConnect: 10.227.148.123:3322 SYSTEM CALL connect ERRNO 239 ERRNO TEXT Connection refused COUNTER 27 '. at com.sap.aii.ibrun.server.lookup.AdapterProxyLocal.process(AdapterProxyLocal.java:92) at com.sap.aii.ibrun.server.lookup.SystemAccessorInternal.call(SystemAccessorInternal.java:55) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:140) at com.sap.aii.ibrun.server.lookup.SystemAccessorHmiServer.process(SystemAccessorHmiServer.java:73) at com.sap.aii.utilxi.hmis.server.HmisServiceImpl.invokeMethod(HmisServiceImpl.java:167) at com.sap.aii.utilxi.hmis.server.HmisServer.process(HmisServer.java:212) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:337) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.processRequestByHmiServer(HmisServletImpl.java:238) at com.sap.aii.utilxi.hmis.web.workers.HmisInternalClient.doWork(HmisInternalClient.java:70) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doWork(HmisServletImpl.java:532) at com.sap.aii.utilxi.hmis.web.HmisServletImpl.doPost(HmisServletImpl.java:670) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66) at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376) at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71) at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71) at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67) at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71) at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60) at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71) at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71) at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29) at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12) at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71) at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:295) at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247) Caused by: com.sap.aii.af.service.api.AFException: XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=KD3.AP.CSPLC.ORG SYSNR=22 GWHOST=KD3.AP.CSPLC.ORG GWSERV=sapgw22 PCS=1  LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.227.148.123:sapgw22' not reached TIME Fri Aug 6 02:11:46 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 2778 DETAIL NiPConnect: 10.227.148.123:3322 SYSTEM CALL connect ERRNO 239 ERRNO TEXT Connection refused COUNTER 27 '. Cause Exception: 'com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.adapter.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.adapter.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=KD3.AP.CSPLC.ORG SYSNR=22 GWHOST=KD3.AP.CSPLC.ORG GWSERV=sapgw22 PCS=1  LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.227.148.123:sapgw22' not reached TIME Fri Aug 6 02:11:46 201 RELEASE 710 COMPONENT NI (network interface) VERSION 39 RC -10 MODULE nixxi.cpp LINE 2778 DETAIL NiPConnect: 10.227.148.123:3322 SYSTEM CALL connect ERRNO 239 ERRNO TEXT Connection refused COUNTER 27 '. at com.sap.aii.af.service.api.AdapterAccess.sendMsg(AdapterAccess.java:214) at com.sap.aii.af.service.api.AdapterAccess.call
    Please sugets how to resolve this issue.
    Thanks
    Mohit

    Hi Mohit,
    Do full CACHE refresh.
    http://<host>:5<sys#>00/CPACache/refresh?mode=full
    This may solve the issue.
    Thanks,
    Vijay.

  • When not using EJBs can I make BD a Singleton and cache facade instances?

    Hi,
    In an application which does not use EJBs can I make BD(Business Delegate) a singleton?
    I was very sure about doing this but when I tried Google on the same subject the answers were'nt supportive of this but that was in the context of applications which used EJBs. And also item 4 in Effective Java isnt very supportive of caching Objects at the drop of a hat.
    When not using EJBs would it be an unnecessary thing to make BD a singleton and cahce Facade instances in a BD and DAO instances in a Facade? I am planning to use a array based blocking bounded buffer for the purposes of caching. Or would it be better to make both BD and a facade as SIngletons and just cache DAOs in a Facade?
    Any suggestion would be of good help to me.
    Thanks a lot.

    Not sure I understand all your design, but you seem
    to describe an architecture where requests are queued
    and handled serially.Sorry if I messed up while explaining it. No, it will not be handled serially. Since the BD is a singleton multiple threads can pass messages to it simulteanously, a bit like an object of the Action class in Struts. Since I dont see having any synchronized methods in a BD requests will be handled simulteanously.
    The impact on throughput of handling requests
    serially (as opposed to parallelizing them) probably
    outweights by far the cost of instantiating one more
    object per request...Yes, I understand that but as I explained above the reqests wont be handled serially.
    To be more clear, I am thinking of using any one of these two things:
    1) BD(Singleton)-->Facade(Singleton, caches DAOs in a thread safe data structure)
    2)1) BD(Singleton, caches Facade instances in a thread safe data structure)-->Facade(caches DAOs in a thread safe data structure).
    the thread safe data structure I am planning to have is a array based bounded buffer which blocks using wait and notify mechanism.
    Thank you for the reply.

  • Can not make force-update="true" in orion-ejb-jar.xml

    if you make force-update="true" in the orion-ejb-jar.xml, even a simple entity bean can not be deploy to oc4j 9.0.3.
    can anybody tell me if it is a bug?
    Auto-deploying file:/D:/testdir/fromdbms/Project1/classes/ (No previous deployment found)... Country_EntityBeanWrapper2.java:1567: unclosed string literal
    if(com.evermind.server.ApplicationServer.DEBUG) debug("update COUNTRY set CODE = ?, NAME = ? where UNIQUEID = ?
    ^
    Country_EntityBeanWrapper2.java:1568: ')' expected
    PreparedStatement statement = connection.getCustomStatement("update COUNTRY set CODE = ?, NAME = ? where UNIQUEID = ?");
    ^

    I use jdeveloper 903 version to create only one entity bean, and set the force-update=true in the orion-ejb-jar.xml, when verify it, it is ok, when deploy it to the oc4j 903 version, it throws error message.
    you may try it using jdeveloper 9.0.3 version.

  • Why the ejb can not pass the complie?

    I just use the work shop to create a simple ejb(SampleEJB.ejb) like:
    package SampleEJB;
    import javax.ejb.*;
    import weblogic.ejb.*;
    * @ejbgen:session
    * ejb-name = "Sample"
    * @ejbgen:jndi-name
    * remote = "ejb.SampleRemoteHome"
    * @ejbgen:file-generation remote-class = "true" remote-class-name = "Sample"
    remote-home = "true" remote-home-name = "SampleHome" local-class = "false" local-class-name
    = "SampleLocal" local-home = "false" local-home-name = "SampleLocalHome"
    public class SampleEJB
    extends GenericSessionBean
    implements SessionBean
    public void ejbCreate() {
    // Your code here
    * @ejbgen:remote-method
    public void Hello(){
              System.out.println("Hello");
    * @ejbgen:remote-method
    public void Hello2(){
              System.out.println("Hello2");
    but when i build it. The compiler give me error:
    ¾¯¸æ: SampleEJB.java:14: ÕÒ²»µ½ JNDI Ãû³Æ¡£
    [Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\SampleEJB\SampleHome.java
    [Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\SampleEJB\Sample.java
    [Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\META-INF\ejb-jar.xml
    [Info:] null [Bean] MAKE CLASS NAME G:SampleHome P:SampleEJB N:SampleHome
    [Info:] null [Bean] MAKE CLASS NAME G:Sample P:SampleEJB N:Sample
    [Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\META-INF\weblogic-ejb-jar.xml
    [Info:] Creating D:\DOCUME~1\Yong\LOCALS~1\Temp\/wlw_SampleEJB_build\ejbgen-build.xml
    SourceLoader roots: 10
    post-ejbgen:
    ¾¯¸æ: EJBGen ok. Compiling...
    Compiling 3 source files to D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build
    ¾¯¸æ: All files compiled. Running ejbc...
    <2004-5-3 ÏÂÎç16ʱ20·Ö17Ãë CST> <Warning> <EJB> <BEA-010212> <The EJB 'Sample(Jar:
    D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build)' contains at least one method
    without an explicit transaction attribute setting. The default transaction attribute
    of Supports will be used for the following methods: remote[Hello2(), Hello()]
    >
    SourceLoader roots: 60
    D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:13:
    cannot resolve symbol
    symbol : class SampleHome
    location: class SampleEJB.SampleEJB
    implements SampleEJB.SampleHome, weblogic.utils.PlatformConstants
    ^
    D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:69:
    cannot resolve symbol
    symbol : class Sample
    location: class SampleEJB.SampleEJB
    public SampleEJB.Sample create ()
    ^
    D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_EOImpl.java:15:
    cannot resolve symbol
    symbol : class Sample
    location: class SampleEJB.SampleEJB
    implements SampleEJB.Sample, weblogic.utils.PlatformConstants
    ^
    D:\DOCUME~1\Yong\LOCALS~1\Temp\wlw_SampleEJB_build\SampleEJB\Sample_vngkt3_HomeImpl.java:73:
    cannot resolve symbol
    symbol : class Sample
    location: class SampleEJB.SampleEJB
    return (SampleEJB.Sample) super.create(md_ejbCreate);
    ^
    4 errors
    ´íÎó: ERROR: Error from ejbc: Compiler failed executable.exec
    ´íÎó: ERROR: ejbc couldn't invoke compiler
    BUILD FAILED
    ´íÎó: ERROR: Error from ejbc: Compiler failed executable.exec
    ´íÎó: ERROR: ejbc couldn't invoke compiler
    Why? who can give me a hand

    I met the same problem. I am a newbie, but why weblogic even can not build a simple startup ejb project?

  • In jb6,It can not find javax.ejb,how can i do?

    I want to use jb6 to develop ejb beans ,
    but In my jb6,when I complile,It show "can't acess javax/ejb",and i can't find ejb in javax,how can i do?
    where ejb?

    I want to use jb6 to develop ejb beans ,
    but In my jb6,when I complile,It show "can't acess
    javax/ejb",and i can't find ejb in javax,how can i
    do?
    where ejb?Its not required to set any environment variable for EJB development with JBuilder6. If you are not using any of the JBuilder wizards for creating EJB's, then you need to add your JAR files through 'required libraries'.

Maybe you are looking for

  • Printing presets are not loaded correctly

    Dear community, i have the following problems using different printers (Canon MG5200, Epson Workforce WF3620, etc.): I saved about 10 own printing presets and when I check on them under "Show presets" they are totally correct. But when I want to use

  • RECOVERY in my windows os showing problem

    i have HP G62-461TU Notebook PC having Windows 7 64-bit . one time i have formatted my pc now i want to recover that all, now what should i do? because my recovery manager is showing that "your computer does not have a recovery partition." I am facin

  • Need help playing library from multiple machines...

    My main computer (desktop) @ my house 'houses' my mp3 collection. I have networked laptops in my garage and just added another laptop to my tv room to play music from. The problem I run into is having the laptop rescan the desktops library over and o

  • How come it o hard to get adobe flash player to work on window 8.1?

    I have trouble with the Pleae install adobe flash player to view this vidio.  I get it to work for a while then it not working & i have to fiddle with it again?

  • New Set of Book

    Dear all, I have Requriment of Open New Set of Book, in This Way i Need To Change in AP, AR,GL what should i Follow and What Changes Requried in these module i Setup Level. Thanks