L
laredotornado
Hi,
I'm writing some JUnit (4.3) tests on a Java 1.5 VM. I'm trying to
add a JNDI reference for an EJB service running locally. So far, I
have
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"the");
env.put("java.naming.provider.url",
"http://localhost:8082/apps/dor/online/interlock/hessian/");
Context initialContext = new InitialContext(env);
However, I'm getting a ClassNotFoundException for the class
"com.sun.enterprise.naming.SerialInitContextFactory". My question is,
does each JVM have a standard factory it uses for the initial context,
and where would I find such a class? (I just cut-and-pasted the
example from another site, so I'm not surpised it threw an exception).
Thanks, - Dave
I'm writing some JUnit (4.3) tests on a Java 1.5 VM. I'm trying to
add a JNDI reference for an EJB service running locally. So far, I
have
Hashtable<String, String> env = new Hashtable<String, String>();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"the");
env.put("java.naming.provider.url",
"http://localhost:8082/apps/dor/online/interlock/hessian/");
Context initialContext = new InitialContext(env);
However, I'm getting a ClassNotFoundException for the class
"com.sun.enterprise.naming.SerialInitContextFactory". My question is,
does each JVM have a standard factory it uses for the initial context,
and where would I find such a class? (I just cut-and-pasted the
example from another site, so I'm not surpised it threw an exception).
Thanks, - Dave