2 Replies Latest reply on Jul 16, 2013 8:13 PM by Stephen Coy

    Trouble getting MQ jars pulled into JBoss AS 7 JVM

    emryszer0 Newbie

      Hi All,

       

      I am having issues getting JBoss AS 7.1.1 and IBM MQ 7.1.0.3 to play nicely.  Both JBoss and MQ are 64-bit on RHEL 6.0.  I have a running queue manager within MQ with a full set of queues and channels.  I have JBoss running  with multiple JVMs, and the sites are all running without other issues.  There is only one site that needs MQ, and within that JVM, i have the following defined in the run.conf.

       

      JAVA_LIB_PATH="/opt/mqm/java/lib64"

      export JAVA_LIB_PATH

       

      -Djava.library.path=/opt/mqm/java/lib64

       

      I can get the two talking if I add the com.ibm.mq.jar and others into the application EAR and deploy it out.  If I remove the jars, i get the expected "java.lang.NoClassDefFoundError: com/ibm/mq/MQQueueManager"

       

      I tried adding the following directory structure and relevant jars.  I copied the jars in from /opt/mqm/java/lib/  I know i'm really close to getting this to work, but i am missing a crucial piece of the config.

       

      # pwd

      /opt/jboss/7.1.1/modules/com/ibm/mq/main

      # ls -l

      total 18660

      -r--r--r--. 1 mqm      mqm     13143 May 16  2012 CL3Export.jar

      -r--r--r--. 1 mqm      mqm     33166 May 16  2012 CL3Nonexport.jar

      -r--r--r--. 1 mqm      mqm    107426 May 16  2012 com.ibm.mq.axis2.jar

      -r--r--r--. 1 mqm      mqm    780747 May 16  2012 com.ibm.mq.commonservices.jar

      -r--r--r--. 1 mqm      mqm    435666 May 16  2012 com.ibm.mq.defaultconfig.jar

      -r--r--r--. 1 mqm      mqm    358262 May 16  2012 com.ibm.mq.headers.jar

      -r--r--r--. 1 mqm      mqm    449107 May 16  2012 com.ibm.mq.jar

      -r--r--r--. 1 mqm      mqm   2093076 May 16  2012 com.ibm.mq.jmqi.jar

      -r--r--r--. 1 mqm      mqm   3369234 May 16  2012 com.ibm.mqjms.jar

      -r--r--r--. 1 mqm      mqm     13836 May 16  2012 com.ibm.mq.jms.Nojndi.jar

      -r--r--r--. 1 mqm      mqm    106138 May 16  2012 com.ibm.mq.pcf.jar

      -r--r--r--. 1 mqm      mqm   7757549 May 16  2012 com.ibm.mq.postcard.jar

      -r--r--r--. 1 mqm      mqm    101691 May 16  2012 com.ibm.mq.soap.jar

      -r--r--r--. 1 mqm      mqm     76335 May 16  2012 com.ibm.mq.tools.ras.jar

      -r--r--r--. 1 mqm      mqm     17978 May 16  2012 connector.jar

      -r--r--r--. 1 mqm      mqm   2011813 May 16  2012 dhbcore.jar

      -r--r--r--. 1 mqm      mqm     22769 May 16  2012 fscontext.jar

      -r--r--r--. 1 mqm      mqm     25998 May 16  2012 jms.jar

      -r--r--r--. 1 mqm      mqm     98496 May 16  2012 jndi.jar

      -r--r--r--. 1 mqm      mqm      8809 May 16  2012 jta.jar

      -r--r--r--. 1 mqm      mqm    123717 May 16  2012 ldap.jar

      -rwxrwxr-x. 1 jbossadm mware    1287 Jul  9 11:23 module.xml

      -r--r--r--. 1 mqm      mqm     77116 May 16  2012 providerutil.jar

      -r--r--r--. 1 mqm      mqm    893748 May 16  2012 rmm.jar

       

      So my question is this:  How do I get the MQ jars pulled into the JVM without adding them into the EAR file?  There must be a way to pull this in either through the run.conf or the standalone.xml.  I've been able to get by so far by adding jars to pre-existing module directories that were already defined in the standalone.xml, but there is not extension defined for MQ in the standalone.xml.  Anyone else do this?

       

      Thanks,

      Emrys