Currently we are in process of migrating from WAS to Tomcat 9, but stuck with MQ issue. We are trying to connect to MQ through client mode. But somehow connection are not going through to MQ. In tomcat/libs, we have below files of MQ client 8.
Implementation-Title: WebSphere MQ classes for JMS and Java
Implementation-Version: 8.0.0.8 - p800-008-171121-DELTA-L180926.1
Implementation-Vendor: IBM Corporation
fscontext.jar
jms.jar (2.0) version
JSON4J.jar
providerutil.jar
com.ibm.mq.allclient.jar
Below resource defined for MQ connection in context.xml.
<Resource name="jms/MQConnectionFactory" auth="Container" type="com.ibm.mq.jms.MQQueueConnectionFactory" factory="com.ibm.mq.jms.MQQueueConnectionFactoryFactory"
HOST="hostname" PORT="port" CHAN="channel" TRAN="1" SCPHS="cipher" QMGR="Qmanager" />
<Resource name="jms/rcsInQueueTREATS" auth="Container" type="com.ibm.mq.jms.MQQueue" factory="com.ibm.mq.jms.MQQueueFactory" SCPHS="cipher" QU="queue name"/>
We enable mq jms stack trace to check exact reason, we get below exception.
t) --- d getInstance(String,int) Caught expected exception at catch index 8 [com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]] ----- **Not sure if any relevance here**
----+-- { <init>(String,String,String,String,Map) [JMSFMQ6312: An exception occurred in the Java(tm) MQI.] [**JMSFMQ6312**] [The Java(tm) MQI has thrown an exception describing the problem. ] [See the linked exception for further information.] <null>
Any idea how to resolved above errors?
Adding full error trace
06:11:17.588.06 0001 @60e6c5a3 c.i.m.c.commonservices.cssystem.WASSupport$1
----+----+ d <init> class [class com.ibm.mq.MQEnvironment]
06:11:17.588.07 0001 @60e6c5a3 c.i.m.c.commonservices.cssystem.WASSupport$1
----+----+ X run()<catchIndex 2>
06:11:17.588.07 0001 com.ibm.mq.MQEnvironment.runningInWS() [java.lang.NoSuchMethodExc
eption] at:
06:11:17.588.0F 0001 @4b2371c6 java.lang.String(ComponentManager)
----+--- { getComponent(String,HashMap) [LICENSE] [{WMQv7=}]
06:11:17.589.00 0001 static c.i.m.client.commonservices.CSIException
----+---- d static SCCS id [@(#) com.ibm.msg.client.commonservices/src/co
m/ibm/msg/client/commonservices/CSIException.java, jmscc.commonservices, k701, k701-101-09
1116 1.18.1.1 09/08/17 09:01:47]
06:11:17.592.00 0001 @44e0bbaa c.i.m.client.commonservices.CSIException ----+---- { <init>(String) [A component was unable to be located by the Component Manager. LICENSE]
06:11:17.592.01 0001 @44e0bbaa c.i.m.client.commonservices.CSIException ----+---- } <init>(String)
06:11:17.592.02 0001 @4b2371c6 java.lang.String(ComponentManager) ----+---- ! getComponent(String,HashMap)<throwIndex 3>, A component was unable to be located by the Component Manager. LICENSE [com.ibm.msg.client.commonservices.CSIException]
06:11:17.592.03 0001 @113df8f9 c.i.m.c.wmq.factories.WMQFactoryFactory ----+--- d <init>() Caught expected exception at catch index 2 [com.ibm.msg.client.commonservices.CSIException: A component was unable to be located by the Component Manager. LICENSE]