I am coding an application that are using rmi-iiop, and using the Websphere naming server in WAS 3.5. After I installed the remote implementation code to the server, I test the client code from VA-Java, every things working fine. But when I export the client code to the jdk1.3.1 environment, it cannot able to look up the server and throw an exception like this...
javax.naming.NamingException: Error during resolve. Root exception is
java.lang.NullPointerException
at com.ibm.ejs.ns.jndi.CNContextImpl.doLookup(CNContextImpl.java:726)
at com.ibm.ejs.ns.jndi.CNContextImpl.lookup(CNContextImpl.java:584)
at javax.naming.InitialContext.lookup(Unknown Source)
at com.wea.leave.system.ListenerRunnerClient.main(ListenerRunnerClient.java:50)
Error during resolve
null
java.lang.NullPointerException
also I am using com.ibm.ejs.ns.jndi.CNInitialContextFactory. I have no idea why everythings working in VA-java env. but not working when I am just using the JDK. I really need to app to run in the JDK env. Am I missing any configuration need to be set before I run it in the command prompt? Thanks for any advice.
Francis Kwok
hwkwok@chorus.net [ February 18, 2002: Message edited by: francisk ]