| Author |
Java EJB Client Error
|
Jaideep Joshi
Greenhorn
Joined: Mar 12, 2004
Posts: 18
|
|
Hi All, I have a stateless session ejb deployed on WAS 5.1. I have written a simple java class to run a method in the remote interface of the ejb. I have created a client jar, which contains the ejb interfaces. I have put all the necessory jars in the classpath (client.jar, naming.jar, namingclient.jar, server.jar and core.jar). When I try to run this class, I get following error, any clue ???: java.lang.UnsatisfiedLinkError: registerNatives at com.ibm.jvm.ExtendedSystem.registerNatives(Native Method) at com.ibm.jvm.ExtendedSystem.<clinit>(ExtendedSystem.java:176) at com.ibm.rmi.util.JDKBridge.setCodebaseProperties(JDKBridge.java:226) at com.ibm.rmi.util.JDKBridge.<clinit>(JDKBridge.java:205) at com.ibm.rmi.util.RepositoryId.<clinit>(RepositoryId.java:122) at com.ibm.rmi.iiop.CDROutputStream.<clinit>(CDROutputStream.java:1077) at com.ibm.rmi.corba.ORB.<init>(ORB.java:250) at com.ibm.rmi.iiop.ORB.<init>(ORB.java:166) at com.ibm.CORBA.iiop.ORB.<init>(ORB.java:521) 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:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.omg.CORBA.ORB.create_impl(ORB.java:295) at org.omg.CORBA.ORB.init(ORB.java:336) at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:77) at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:174) at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:98) at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:74) at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:386) at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:284) at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:365) at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:102) at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:408) at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:131) at javax.naming.InitialContext.lookup(InitialContext.java:347) at testSessionEjbClient.main(testSessionEjbClient.java:23) 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:324) at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
|
 |
Jaideep Joshi
Greenhorn
Joined: Mar 12, 2004
Posts: 18
|
|
|
I dont't want to create the client module. Also I don;t want to use launchClient utility. I just want to run a simple java class from cmd prompt.
|
 |
Roland Barcia
author
Ranch Hand
Joined: Apr 15, 2004
Posts: 177
|
|
|
Looking at the stack trace you may be using a client VM instead of the server one. Try running the client with a server VM.
|
Roland Barcia<br />STSM - ISSW Lead Web 2.0 Architect
|
 |
 |
|
|
subject: Java EJB Client Error
|
|
|