1 Reply Latest reply on Jul 24, 2012 12:57 PM by jbertram

    NoClassDefFoundException with HornetQ Standalone server

    buhls

      Hornetq newbie here. I"m running HornetQ 2.2.5 Final in Standalone mode and using the JMS API.   I'm getting NoClassDefFoundExceptions in my client code

      when I try to perform a lookup a Connection Factory or Topic name.

       

      ex. java.lang.NoClassDefFoundError: Lorg/hornetq/api/core/logging/Logger

       

      ex. java.lang.NoClassDefFoundError: Lorg/hornetq/api/core/SimpleString

       

       

      I've including the following jars in my client app classpath:

      jnp-client.jar

      hornetq-jms-client.jar

      jboss-jms-api.jar

       

      I've also tried adding the following to the classpath as well:

      hornetq-core.jar

       

       

      The server starts up with no errors (stand-alone/non-clustered), and I get the InitialContext fine.

      This is all I saw in the documentation. What am I possibly missing?

       

      thanks,

      buhls

        • 1. Re: NoClassDefFoundException with HornetQ Standalone server
          jbertram

          The first thing I recommend you do is upgrade to a later version of HornetQ.

           

          Aside from that...

           

          The class org.hornetq.api.core.logging.Logger is not shipped in HornetQ 2.2.5 (or any version from what I can tell).  However, there is a org.hornetq.core.logging.Logger in hornetq-core-client.jar.

           

          The class org.hornetq.api.core.SimpleString is in hornetq-core-client.jar.