java.lang.ClassNotFoundException: com.ibm.mq.MQException in TIBCO ActiveMatrix BusinessWorks Plug-in for WebSphere MQ.

java.lang.ClassNotFoundException: com.ibm.mq.MQException in TIBCO ActiveMatrix BusinessWorks Plug-in for WebSphere MQ.

book

Article ID: KB0093310

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for IBM MQ -
Not Applicable -

Description

Description:
When testing MQ plug-in connection resource or running MQ plug-in project, the following exception is thrown. This is because the MQ plug-in has a problem loading or finding the IBM MQ Java client lib.

Caused by: java.lang.NoClassDefFoundError: com/ibm/mq/MQException
at com.tibco.plugin.bwmq.ConnectionResource.afterClose(ConnectionResource.java:179)
at com.tibco.ae.tools.designer.AEDocument.selectResource(AEDocument.java:914)
at com.tibco.ae.tools.designer.AEDocument.selectResource(AEDocument.java:823)
at com.tibco.ae.tools.designer.ProjectTreeManager.selectInspect(ProjectTreeManager.java:231)
... 20 more
Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQException
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 24 more

Issue/Introduction

java.lang.ClassNotFoundException: com.ibm.mq.MQException in TIBCO ActiveMatrix BusinessWorks Plug-in for WebSphere MQ.

Resolution

1). Make sure the Designer and BW .tra file has the IBM MQ Java client library included in the class path environment. Below is the entry in a good Designer .tra file.

tibco.env.STD_CP_EXT C:/Program Files (x86)/IBM/WebSphere MQ/java/lib

2). Make sure the IBM MQ Java client library has all the necessary Jar files. The following is a sample directory.

Directory of C:\Program Files (x86)\IBM\WebSphere MQ\java\lib

6/04/2012  03:22 AM            13,143 CL3Export.jar
6/04/2012  03:22 AM            33,166 CL3Nonexport.jar
6/04/2012  03:22 AM           107,773 com.ibm.mq.axis2.jar
6/04/2012  03:22 AM           778,500 com.ibm.mq.commonservices.jar
6/04/2012  03:23 AM           436,169 com.ibm.mq.defaultconfig.jar
6/10/2008  01:00 AM           911,337 com.ibm.mq.fta.jar
6/04/2012  03:22 AM           269,291 com.ibm.mq.headers.jar
6/04/2012  03:22 AM           429,371 com.ibm.mq.jar
6/04/2012  03:22 AM         2,754,966 com.ibm.mq.jmqi.jar
6/04/2012  03:22 AM            14,120 com.ibm.mq.jms.Nojndi.jar
6/04/2012  03:22 AM            88,000 com.ibm.mq.pcf.jar
6/04/2012  03:23 AM         7,687,973 com.ibm.mq.postcard.jar
6/04/2012  03:22 AM           102,110 com.ibm.mq.soap.jar
6/04/2012  03:22 AM            76,564 com.ibm.mq.tools.ras.jar
6/04/2012  03:22 AM         3,053,202 com.ibm.mqjms.jar
6/04/2012  03:22 AM            17,978 connector.jar
6/04/2012  03:22 AM         2,101,638 dhbcore.jar
6/04/2012  03:22 AM            22,769 fscontext.jar
6/04/2012  03:22 AM            25,998 jms.jar
6/04/2012  03:22 AM            98,496 jndi.jar
6/04/2012  03:22 AM             8,809 jta.jar
6/04/2012  03:22 AM           123,717 ldap.jar
6/04/2012  03:22 AM            77,116 providerutil.jar
6/04/2012  03:22 AM           887,237 rmm.jar