|
I've just installed JBoss 2.2.1 on Windows 2000
without any problems. However, I have a question regarding JNDI naming
services:
I'm running the Interest EJB that comes with
JBoss to test its EJB functionality. The EJB compiled and deployed without
problem. However, I can't get the client to run because of the following
error:
javax.naming.NoInitialContextException:
Cannot instantiate class: org.jnp.interf
aces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: o rg.jnp.interfaces.NamingContextFactory] Here is how my properties are setup:
Properties env = new
Properties();
env.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory"); env.setProperty("java.naming.provider.url", "localhost:1099"); env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming"); Obviously, I have the java.naming.factory stuff
setup wrong. Question is, what do I do to fix it?
Thanks in advance,
Will
|
- Re: [JBoss-dev] Javax.naming Will Bracken
- Re: [JBoss-dev] Javax.naming Scott M Stark
