You don't have jnp-client.jar in your classpath as shown in the example
command line:
java -classpath
"JBOSS_DIST/client/jboss-client.jar:JBOSS_DIST/client/jbosssx-client.jar:JBOSS_DIST/client/jnp-client.jar:."
InterestClient
----- Original Message -----
From: Will Bracken
To: [EMAIL PROTECTED]
Sent: Tuesday, April 24, 2001 8:25 AM
Subject: [JBoss-dev] Javax.naming
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
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development