3 Replies Latest reply on Jun 4, 2015 2:46 PM by jbertram

    HornetQ with JGroups: java.lang.NoClassDefFoundError: org/jgroups/Receiver

    realkobe

      Hi there,

       

      I want to use HornetQ with JGroups. Unfortunately I always get an java.lang.NoClassDefFoundError: org/jgroups/Receiver

       

      How to reproduce on a clean HornetQ:

       

      1. Download

      > wget http://downloads.jboss.org/hornetq/hornetq-2.4.0.Final-bin.tar.gz

       

      2. untar

      > tar xfvz hornetq-2.4.0.Final-bin.tar.gz

       

      3. step into bin directory so that run.sh can be executed

      > cd hornetq-2.4.0.Final/bin/

       

      4. start HornetQ via run.sh with JGroups example configuration

      hornetq-2.4.0.Final/bin> sh run.sh ../examples/jms/clustered-jgroups/src/main/resources/hornetq/server0/

      ***********************************************************************************

      java  -XX:+UseParallelGC -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms512M -Xmx1024M -Dhornetq.config.dir=/tmp/hornetq-2.4.0.Final/examples/jms/clustered-jgroups/src/main/resources/hornetq/server0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=file:///tmp/hornetq-2.4.0.Final/examples/jms/clustered-jgroups/src/main/resources/hornetq/server0/logging.properties -Djava.library.path=./lib/linux-i686:./lib/linux-x86_64 -classpath ../lib/proton-jms.jar:../lib/proton-j-impl.jar:../lib/proton-api.jar:../lib/netty.jar:../lib/jnpserver.jar:../lib/jnp-client.jar:../lib/jboss-mc.jar:../lib/jboss-jms-api.jar:../lib/hornetq-twitter-integration.jar:../lib/hornetq-tools.jar:../lib/hornetq-stomp-protocol.jar:../lib/hornetq-spring-integration.jar:../lib/hornetq-service-sar.jar:../lib/hornetq-server.jar:../lib/hornetq-rest.jar:../lib/hornetq-ra.jar:../lib/hornetq-native.jar:../lib/hornetq-journal.jar:../lib/hornetq-jms-server.jar:../lib/hornetq-jms-client.jar:../lib/hornetq-jboss-as-integration.jar:../lib/hornetq-core-client.jar:../lib/hornetq-commons.jar:../lib/hornetq-bootstrap.jar:../lib/hornetq-amqp-protocol.jar:../lib/hornetq-aerogear-integration.jar:/tmp/hornetq-2.4.0.Final/examples/jms/clustered-jgroups/src/main/resources/hornetq/server0:../schemas/ org.hornetq.integration.bootstrap.HornetQBootstrapServer hornetq-beans.xml

      ***********************************************************************************

      Unable to read the logging configuration from 'file:///tmp/hornetq-2.4.0.Final/examples/jms/clustered-jgroups/src/main/resources/hornetq/server0/logging.properties' (java.io.FileNotFoundException: /tmp/hornetq-2.4.0.Final/examples/jms/clustered-jgroups/src/main/resources/hornetq/server0/logging.properties (Datei oder Verzeichnis nicht gefunden))

      Exception in thread "main" java.lang.IllegalStateException: Incompletely deployed:

       

      DEPLOYMENTS IN ERROR:

        Deployment "JMSServerManager" is in error due to: java.lang.NoClassDefFoundError: org/jgroups/Receiver

        Deployment "Naming" is in error due to: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file:  java.naming.factory.initial

       

      DEPLOYMENTS MISSING DEPENDENCIES:

        Deployment "JNDIServer" is missing the following dependencies:

          Dependency "Naming" (should be in state "Installed", but is actually in state "**ERROR**")

       

          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)

          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.bootstrap(HornetQBootstrapServer.java:157)

          at org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.run(HornetQBootstrapServer.java:115)

          at org.hornetq.integration.bootstrap.HornetQBootstrapServer.main(HornetQBootstrapServer.java:69)

       

       

      Even if I set HORNETQ_HOME, in the tar ball there is no jgroups.jar or something like that.

       

      What do I do wrong?

       

      Regards

      Stephan