2 Replies Latest reply on Dec 12, 2014 6:50 AM by razvan vasiliu

    HornetQ v2.3, v2.4 resource adapter not compatible with Jboss 4.3.0

    razvan vasiliu Newbie

      Hi,

       

        I installed HornetQ as standalone and then tried to configure the resource adapter for Jboss 4.3.0. I copied the necessary libraries to the lib folder of the default configuration like here (Chapter 32. Application Server Integration and Java EE - 32.5.1. Configuring JBoss 5).

      Got this error in Jboss:

       

      ObjectName: jboss.jca:service=RARDeployment,name='hornetq-ra.rar'

        State: FAILED

        Reason: java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;

       

       

      ObjectName: jboss.j2ee:jar=test-common.jar,name=TestMDB,service=EJB3

        State: FAILED

        Reason: org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='hornetq-ra.rar' messaging-type=javax.jms.MessageListener properties={destinationType=ActivationConfigProperty(destinationType=javax.jms.Queue), destination=ActivationConfigProperty(destination=queue/ExampleQueue)}; - nested throwable: (java.lang.NoClassDefFoundError: Could not initialize class org.hornetq.ra.HornetQRALogger)

       

      I then took the jboss logging jar file from (http://mvnrepository.com/artifact/org.jboss.logging/jboss-logging) - I tried with different versions same result - and copied it to the lib folder from above. Then got:

       

        Reason: java.lang.NoSuchMethodError: org.jboss.logging.Logger.getMessageLogger(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;

       

        Apparently the Resource adaptor is using a different version of Jboss logging than the one present in 4.3.0 so my question is which version is this? What additional libraries do I need to make this work with Jboss 4.3.0. I tried also HornetQ 2.1.2 and it worked fine. The issue seems to appear from HornetQ 2.3.0 onwards.

       

      Thanks for your help!

       

      Best Regards,

      Razvan