i am a newbie in Jboss.
and i have the same problem trying to compile and run the Client example.
Do you cam to any Solutions.
I assume you are using the online manual for the interest sample. This uses Ant to compile your code. Ant uses build.xml file in the directory where you are executing the command. Open this file and you can see the path declaration. Add a new entry including the path for your servlet.jar file. To find the jar, do a search in the install directory for servlet.jar in the install (and subdirectories.)
This should solve your problem.
If you are talking about the example template, follow the instructions on pg 28 of the Quick Start guide. Make sure you copy .ant.properties.example to .ant.properties and modify the properties to point to your jboss install. You shouldn't need to modify the build.xml.
What was reason for
[java] Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logging/Logger
[java] at org.jnp.interfaces.NamingContext.(NamingContext.java:89)
[java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.java:42)
[java] at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
[java] at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
[java] at javax.naming.InitialContext.init(InitialContext.java:219)
[java] at javax.naming.InitialContext.(InitialContext.java:175)
[java] at org.jboss.docs.interest.InterestClient.main(InterestClient.java:27)
[java] Java Result: 1
I am getting same exception.
Can anybody help ?
thanks in advance.
Make sure you're including all the libs from the jboss/client dir in your classpath.