This content has been marked as final. Show 3 replies
Thanks for the reply.
I am using the following in jndi.properties file .
I am using glassfish v3 and this was the recommended way .
java.naming.factory.initial=com.sun.enterprise.naming.SerialInitContextFactory org.omg.CORBA.ORBInitialHost=localhost org.omg.CORBA.ORBInitialPort=3700 java.naming.factory.url.pkgs = com.sun.enterprise.naming java.naming.factory.state = com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl
Also, the same issue appears if I just create InitialContext without any properties parameter i.e.
So, I don't think it is because of the properties but some missing environmental jar which netbeans provided but not here.
InitailContext context = new InitialContext()