IBM MQ Native connection throwing NoClassDefFoundError
search cancel

IBM MQ Native connection throwing NoClassDefFoundError

book

Article ID: 92352

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder) Service Virtualization

Issue/Introduction

Testing a IBM MQ Native Send/Receive Step and getting the below error. 

================ | Message: Test Execution Stopped due to exception -----------------------------------------------
| Trapped Exception: com/ibm/mq/MQException                                                                               
| Trapped Message: java.lang.NoClassDefFoundError: com/ibm/mq/MQException -------------
--------- STACK TRACE
java.lang.NoClassDefFoundError: com/ibm/mq/MQException at com.itko.lisa.messaging.providers.ibmmq.IbmMqQueueManagerAsset.createInstance(IbmMqQueueManagerAsset.java:270) at com.itko.lisa.messaging.providers.ibmmq.IbmMqQueueManagerAsset.createInstance(IbmMqQueueManagerAsset.java:65) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.open(LocalAssetRuntime.java:2320) at com.itko.lisa.asset.LocalAssetRuntime$InstanceEntry.checkOut(LocalAssetRuntime.java:1539) Please help us to configure this.

Environment

All supported DevTest Environments 

Cause

To use DevTest Solutions with various third-party applications like IBM MQ, you must make JAR files from the third-party application available to DevTest. These files were missing in DEVTEST-HOME/lib/Shared folder.

Resolution

Copy the IBM MQ jars to  DEVTEST-HOME/lib/Shared folder in the Workstation machine and also on the server where DEVTEST components are installed.   
Restart all components once the jars are applied. 
 

Additional Information

Refer to section "WebSphere MQ File Requirements" in the documentation of the DevTest release you are running.