Hi,
My requirement is just to run this code with error free which is needed for our application. Server we were using Websphere6.1.
For runnng this client program we had include the following jars
bootstrap.jar
ecutils.jar
ffdc.jar
ibmorb.jar
idl.jar
iwsorb.jar
j2ee.jar
myClient.class
myClient.java
naming.jar
namingclient.jar
ras.jar
SonoraBeans.jar
tx.jar
txClient.jar
txClientPrivate.jar
utils.jar
wsexception.jar
This is our
ejb client code.
we were pointing to IBM jre to run the above code.
While running up the code we ended up with the following exception
May 29, 2009 12:50:32 PM com.ibm.ws.naming.util.Helpers
WARNING: jndiNamingException
javax.naming.NamingException: Error during resolve [Root exception is java.lang.NullPointerException]
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1939)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1862)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1552)
at com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:1354)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:172)
at javax.naming.InitialContext.lookup(InitialContext.java:363)
at com.example.myClient.main(myClient.java:23)
Caused by: java.lang.NullPointerException
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3233)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3225)
at com.ibm.ws.security.auth.ContextManagerImpl.login(ContextManagerImpl.java:3014)
at com.ibm.ws.naming.jndicos.CNContextImpl$1.run(CNContextImpl.java:5072)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.naming.jndicos.CNContextImpl.login(CNContextImpl.java:5067)
at com.ibm.ws.naming.jndicos.CNContextImpl.cosResolve(CNContextImpl.java:4334)
at com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1901)
Note : JNDI lookup name is correct, since the same code is working up in our client side, we assuming we were missing up of some jars or wrong jars may leads to this problem
Any clarification/suggestions will be welcomed.
Thanks in Advance