I think you must send the properties :
// Set up the naming provider; this may not always be necessary, depending
// on how your Java system is configured.
Properties env = new Properties();
env.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactor
Hi,
I try to use the following line of code in a servlet:
Context con = new InitialContext();
The Servlet is loaded on startup. I get the following exception using
Tomcat 4.0.1
javax.naming.NoInitialContextException:
Cannot instantiate class: org.apache.naming.java.javaURLContextFac