At 10:54 PM 3/24/01 -0500, you wrote:
>Hi,
>I am trying to runthe Interest rate example from Jboss.org and the client 
>failed with the following message. Could anyone tell me why??
>
>F:\Jboss2.1\examples\interest>java InterestClient
>javax.naming.NoInitialContextException: Cannot instantiate class: 
>org.jnp.interfaces.NamingContextFactory [Root exception is 
>java.lang.ClassNotFoundException:org.jnp.interfaces.NamingContextFactory]

Your Java Virtual Machine, java.exe, is complaining that it's unable to 
find a class named "org.jnp.interfaces.NamingContextFactory." This always 
happens because you don't have the class in your CLASSPATH, either in one 
of the directories listed in your CLASSPATH or in a .jar file listed in 
your CLASSPATH.

Take a look at the jBoss Web page that shows you how to run this client 
under Windows:
   http://www.jboss.org/documentation/jboss_win32_6.html
In particular, you need to add some more .jar files to your CLASSPATH:
   java -classpath 
%CLASSPATH%;..\..\lib\ext\ejb.jar;..\..\client\jboss-client.jar;. 
InterestClient

I'm working on better instructions with a less trivial example. I'll post a 
notice in this mailing list when I'm done.

-- Ken Jenks, http://abiblion.com/

    Tools for reading.


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to