Re: InitialContext in Servlet

2002-02-04 Thread Emerson
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

InitialContext in Servlet

2002-02-04 Thread Volker Turau
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