Support Article
MQEnvironment ClassNotFound exception
SA-6362
Summary
We are setting up new environment and we are having issues when trying to connect MQ Server from PRPC.
Error Messages
com.ibm.mq.MQEnvironment class not found exception
Steps to Reproduce
Not Applicable
Root Cause
MQ jars were not added in the PRPC CLASSPATH.
Resolution
Following approaches can be taken to make MQ jars available to PRPC
Import the below MQ 7 jars by using PRPC. Application / Import:
com.ibm.mq.jmqi.jar
com.ibm.mq.jar
com.ibm.mq.pcf.jar
com.ibm.mq.headers.jar
com.ibm.mq.commonservices.jar
connector.jar
Or, Add the MQ client jars in a WebSphere shared library/tomcat classpath which can be picked up at runtime by the PRPC.
We updated catalina.properties of the tomcat to add the MQ client jars in the CLASSPATH.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.