1 Reply Latest reply on Mar 19, 2003 2:52 AM by joelvogt

    JBoss tutorial exception

    mdramit

      Hi,

      I am newbie in both J2EE and JBoss and would really need some help on the following problem: I download and install JBoss 3.06 bundled with Tomcat. I start the server and I attempt to run the "interest" example of the tutorial.

      I have set all environmental variables fine, I verify that everything is in place and the example seems to be working until the final step. (I have built and deployed the antro-interest-jar, the deployment descriptors are in the place they should be and the client compiles fine).

      The problem is that when I give the command ant intro-interest-client though the compilation is a sucess, I get the following exception:

      interest-client:
      [java] java.lang.NoClassDefFoundError: org/jboss/logging/Logger
      [java] at org.jnp.interfaces.NamingContext.(NamingContext.java:95)
      [java] at org.jnp.interfaces.NamingContextFactory.getInitialContext(NamingContextFactory.ja
      va: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:28)
      [java] Exception in thread "main"
      [java] Java Result: 1
      Meaning the InitialContext call to the Naming service seems to fail. Has anyone encountered a similar problem? How do I solve this?

      Thanks in advance!

      Manos

        • 1. Re: JBoss tutorial exception
          joelvogt

          check that you don't have anything set on your systems classpath. When you run your client, make sure it runs with the required libs in it's classpath. The libs can be found in the client directory.