Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

exception while invoking on Context

3 views
Skip to first unread message

luc neulens

unread,
Feb 28, 2003, 10:13:37 AM2/28/03
to

Code is:

Hashtable h = new Hashtable();
h.put(Context.PROVIDER_URL, "corbalock:iiop:aktarus:2809");
h.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory"); Context ctx =
new InitialContext(h);

I get this error when invoking getEnvironment() or lookup("somestuff") on
a Context. Any one can help here?


javax.naming.NamingException: Failed to initialize the ORB. Root
exception is java.lang.reflect.InvocationTargetException:
java.lang.UnsatisfiedLinkError: registerNatives
at com.ibm.jvm.ExtendedSystem.registerNatives(Native Method) at
com.ibm.jvm.ExtendedSystem.<clinit>(ExtendedSystem.java:163) at
com.ibm.rmi.util.JDKBridge.setCodebaseProperties(JDKBridge.java:224)
at com.ibm.rmi.util.JDKBridge.<clinit>(JDKBridge.java:203) at
com.ibm.rmi.util.RepositoryId.<clinit>(RepositoryId.java:100) at
com.ibm.rmi.iiop.CDROutputStream.<clinit>(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(ORB.java:324) 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.<init>(EJSClientORBImpl.java:98)
at
com.ibm.ejs.oa.EJSClientORBImpl.<init>(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(InitialContext.java:345) at
Test.getLoggingSession(Test.java:19) at Test.main(Test.java:33)

0 new messages