env.put("org.omg.CORBA.ORBInitialHost", "127.0.0.1");
env.put("org.omg.CORBA.ORBInitialPort", "3700");
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.enterprise.naming.SerialInitContextFactory"); I have tried to put
these settings as well, but I still get exception <code> Exception in
thread "main" javax.naming.NamingException: Lookup failed for 'jdbc/projectx'
in SerialContext targetHost=127.0.0.1,targetPort=3700 [Root exception is
javax.naming.NamingException: Unable to acquire SerialContextProvider for
SerialContext targetHost=127.0.0.1,targetPort=3700 [Root exception is
java.lang.NullPointerException]] at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:442)
at javax.naming.InitialContext.lookup(InitialContext.java:392) at
test.jndi.TestJndi.main(TestJndi.java:36) Caused by:
javax.naming.NamingException: Unable to acquire SerialContextProvider for
SerialContext targetHost=127.0.0.1,targetPort=3700 [Root exception is
java.lang.NullPointerException] at
com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:276)
at
com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430)
... 2 more Caused by: java.lang.NullPointerException at
com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:297)
at
com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271)
... 3 more </code> What is that I am missing. I have no clue... :(
--
[Message sent by forum member 'samarthya']
View Post: http://forums.java.net/node/784040