4 Replies Latest reply on Jun 30, 2011 3:12 PM by 870152

    What list of jars should java app uses to invoke remote ejb?

    vsvetov
      I have wrote remote ejb client code and I'd like to execute it. This code invokes beans deployed on weblogic 10.3.
      I got the following errors:
      1) Could not initialize class weblogic.jndi.spi.EnvironmentManager$DefaultFactoryMaker
      w/o wlt3client.jar I got:
      2) java.lang.NoClassDefFoundError: Could not initialize class weblogic.jndi.Environment
      w/o com.bea.core.weblogic.security.identity_1.1.1.0.jar I got:
      3) java.lang.NoClassDefFoundError: weblogic/security/subject/AbstractSubject
      my CLASSPATH has the following jars: wlsclient.jar,wslcleint_extended.jar,wlt3client.jar, com.bea.core.weblogic.security.identity_1.1.1.0.jar , weblogic.jar

      Why is correct list of jar files to use with client java application, if this application uses remote ejb?
        • 1. Re: What list of jars should java app uses to invoke remote ejb?
          Yekki-Oracle
          try wlclient.jar at $WL_HOME/server/lib.

          or

          generate wlfulclient.jar

          http://edocs.bea.com/wls/docs100/client/jarbuilder.html
          • 2. Re: What list of jars should java app uses to invoke remote ejb?
            vsvetov
            OK, with wlcleint it is better.
            At least one API works, but another causes the following exception stack:
            INFO: Unable to query BPEL repository.
            oracle.bpel.services.workflow.client.WorkflowServiceClientException: java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
                 org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: No
                 at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.queryTasks(TaskQueryServiceRemoteClient.java:249)
                 at oracle.bpel.services.workflow.fws.client.TaskQueryAccessor$QueryHandler.retrieveTasks(TaskQueryAccessor.java:857)
                 at oracle.bpel.services.workflow.fws.client.TaskQueryAccessor$QueryHandler.call(TaskQueryAccessor.java:816)
                 at oracle.bpel.services.workflow.fws.client.TaskQueryAccessor$QueryHandler.call(TaskQueryAccessor.java:1)
                 at oracle.bpel.services.common.concurrent.CallableTask.call(CallableTask.java:43)
                 at oracle.bpel.services.common.concurrent.Submission.runAsPrivileged(Submission.java:513)
                 at oracle.bpel.services.common.concurrent.Submission.run(Submission.java:454)
                 at oracle.bpel.services.common.concurrent.Submission$SubmissionFutureTask.run(Submission.java:820)
                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
                 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
                 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
                 at oracle.bpel.services.common.concurrent.ModifiedThreadPoolExecutor$Worker.runTask(ModifiedThreadPoolExecutor.java:678)
                 at oracle.bpel.services.common.concurrent.ModifiedThreadPoolExecutor$Worker.run(ModifiedThreadPoolExecutor.java:703)
                 at java.lang.Thread.run(Thread.java:619)
            Caused by: java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
                 org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: No
                 at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:197)
                 at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
                 at oracle.bpel.services.workflow.query.ejb._TaskQueryServiceRemote_Stub.queryTasks(Unknown Source)
                 at oracle.bpel.services.workflow.query.client.TaskQueryServiceRemoteClient.queryTasks(TaskQueryServiceRemoteClient.java:243)
                 ... 13 more
            Caused by: org.omg.CORBA.MARSHAL: vmcid: 0x0 minor code: 0 completed: No
                 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
                 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
                 at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
                 at java.lang.Class.newInstance0(Class.java:355)
                 at java.lang.Class.newInstance(Class.java:308)
                 at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:897)
                 at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)
                 at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)
                 at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)
                 at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)
                 at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)
                 at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)
                 ... 15 more



            I think the problem is in classpath and jars.
            Once I built wlfullclient.jar the problem disappeared. Thanks

            Edited by: vsvetov on Jan 20, 2009 12:25 AM
            • 3. Re: What list of jars should java app uses to invoke remote ejb?
              MohanSoundararajan
              Thanks Gary,

              this wlfullclient.jar saved me and my 2 days of work :)

              - Mohan
              • 4. Re: What list of jars should java app uses to invoke remote ejb?
                870152
                Has anyone received this same error for SOASuite 11.1.1.3.0?
                I've used the wlclient.jar in /oracle/fmwhome/wlserver_10.3/server/lib. Still get the same marshalling error during runtime.