Hi,
It's a bootstrapping problem. Your client needs to have
an initial starting point to start doing lookups on home
interfaces. To do this, include the following on your
java command line:
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.provider.url=localhost
-Djava.naming.factory.url.pkgs=org.jboss.naming
Alternately you could include these in a jndi.properties
file and make sure that the file is in the CLASSPATH. If
you go with the file route, leave out the -D's.
cheers,
peter
<pre>
Hi,
I am new to EJB and JBoss. I just deployed a simple stateless bean. All went
fine thanks to Auto Deploy. Now I when I tried to run the client I got the
following error. Is this because of some class path setting? I have set the
classpath to <jboss home>\lib\;<jboss
home>\lib\ext\;\J2SDKEE1.2\LIB\J2EE.JAR;.
Thanks in advance.
The Error.
D:\Melvin\EJB>java CustClient
Exception in thread "main" javax.naming.NoInitialContextException: Cannot
instan
tiate class: org.jnp.interfaces.NamingContextFactory. Root exception is
java.la
ng.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at CustClient.getInitialContext(CustClient.java:27)
at CustClient.main(CustClient.java:10)
Vasanth Dharmaraj
-----------------------
V A S A N T H . C J B . N E T
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
</pre>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]