1 Reply Latest reply on Feb 4, 2013 2:51 PM by Nuwan Bandara

    wmq.jmsra.rar & ibm_mq-7.0.jar conflict on JBoss Start up.

    Nuwan Bandara Newbie

      I have the following MDB deployed in JBoss5 and communication to WebSphere MQ 7.0

       

      • EJB 3 MDB as follows.

       

      @MessageDriven(name = "webSphereMQListenerMDB",

              activationConfig = {

                      @ActivationConfigProperty(propertyName = "messagingType", propertyValue = "javax.jms.MessageListener"),

                      @ActivationConfigProperty(propertyName = "destination", propertyValue = "xxx"),

                      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

                      @ActivationConfigProperty(propertyName = "channel", propertyValue = "xxx"),

                      @ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "false"),

                      @ActivationConfigProperty(propertyName="hostName", propertyValue="xxx"),

                      @ActivationConfigProperty(propertyName="port", propertyValue="1461"),

                      @ActivationConfigProperty(propertyName="queueManager", propertyValue="xxx"),

                      @ActivationConfigProperty(propertyName = "username", propertyValue = "xxx"),

                      @ActivationConfigProperty(propertyName = "transportType", propertyValue = "CLIENT")

              })

      @ResourceAdapter(value = "wmq.jmsra.rar")

      public class WebSphereMQListenerMDB implements MessageListener {}

       

      • Deployed wmq.jmsra.rar in JBOSS_HOME\server\default\deploy\
      • MSB is able to receive messages. (No problems)

       

      PROBLEM:

      • In our production JBoss environment, we have JBOSS_HOME\server\default\lib\ibm_mq-7.0.jar (used by other applications)
      • In this situation when I start JBoss, on start up I get this error.

      2013-01-08 12:07:47,921 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.j2ee:jar=QueueServiceAdaptor-2013.1.0.jar,name=webSphereMQListenerMDB,service=EJB3 state=Create

      org.jboss.deployers.spi.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar' messaging-type=javax.jms.MessageListener properties={port=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@349881{port}, username=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@f02988d6{username}, destinationType=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@96f19068{destinationType}, queueManager=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@2708695c{queueManager}, hostName=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@ee12d053{hostName}, useJNDI=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@f7287ad0{useJNDI}, channel=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@2c0b7d03{channel}, transportType=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@a8d93e03{transportType}, destination=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@aac6440e{destination}}

                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

                at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:291)

       

      • Is it because wmq.jmsra.rar and ibm_mq-7.0.jar has common set of jar file?

       

      1. I am not able to change/move ibm_mq-7.0.jar at all because this is how the production suppose to be. Will I have to change the MDB configuration in my MDB? If so how? If not how can I solve this issue?

       

      Thanks

        • 1. Re: wmq.jmsra.rar & ibm_mq-7.0.jar conflict on JBoss Start up.
          Nuwan Bandara Newbie

          I was able to solve this issue by removing following jars from JBOSS_HOME\server\default\lib\

           

          • com.ibm.mq.jmqi.jar
          • com.ibm.mqjms.jar

           

          Finally this is what left in JBOSS_HOME\server\default\lib\

          • ibm_mq-7.0.jar
          • com.ibm.mq.axis2.jar
          • com.ibm.mq.commonservices.jar
          • com.ibm.mq.headers.jar
          • com.ibm.mq.jar
          • com.ibm.mq.jms.Nojndi.jar
          • com.ibm.mq.pcf.jar
          • com.ibm.mq.soap.jar
          • com.ibm.mq.tools.ras.jar
          • com.ibm.mqetclient.jar
          1 of 1 people found this helpful