| Author |
EJB LOOKUP EXCEPTION
|
Abhinav Srivastava
Ranch Hand
Joined: Nov 19, 2002
Posts: 345
|
|
Using WebSphere 5. EJB is successfully deployed and started. Am trying to lookup as Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory"); env.put(Context.PROVIDER_URL, "iiop://cal2bb16:2809); Context initialContext = new InitialContext(env); java.lang.Object ejbHome = initialContext.lookup("jndi"); home h = (home)javax.rmi.PortableRemoteObject.narrow((org.omg.CORBA.Object) ejbHome, home.class); And I get this javax.naming.NamingException: Failed to initialize the ORB. Root exception is java.lang.reflect.Inv ocationTargetException: java.lang.UnsatisfiedLinkError: registerNatives at com.ibm.jvm.ExtendedSystem.registerNatives(Native Method) at com.ibm.jvm.ExtendedSystem.(ExtendedSystem.java:163) at com.ibm.rmi.util.JDKBridge.setCodebaseProperties(JDKBridge.java:224) at com.ibm.rmi.util.JDKBridge.(JDKBridge.java:203) at com.ibm.rmi.util.RepositoryId.(RepositoryId.java:100) at com.ibm.rmi.iiop.CDROutputStream.(CDROutputStream.java:917) at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1146) at com.ibm.CORBA.iiop.ORB.orbParameters(ORB.java:1102) at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1101) at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1639) at org.omg.CORBA.ORB.init(Unknown Source) at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:77) at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:189) at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:98) at com.ibm.ejs.oa.EJSClientORBImpl.(EJSClientORBImpl.java:74) at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:367) at java.lang.reflect.Method.invoke(Native Method) at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:313) at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java :363) 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(Unknown Source)
|
 |
Chris Mathews
Ranch Hand
Joined: Jul 18, 2001
Posts: 2712
|
|
|
Moving to the IBM/Websphere Forum...
|
 |
 |
|
|
subject: EJB LOOKUP EXCEPTION
|
|
|