1
votes

Getting Error for JMS IBM MQ

Response message: javax.naming.NamingException: Lookup failed: java.lang.NoClassDefFoundError: com/ibm/disthub2/impl/client/SessionConfig

Followed the steps from here: http://leakfromjavaheap.blogspot.com/2014/07/jmeter-and-websphere-mq-series.html?_sm_au_=iVV5P5vR626sDt7V

I don't see any error in jmeter log file.

enter image description here

enter image description here

enter image description here

2

2 Answers

0
votes

Did you add ibm jms client jars and dependencies in jmeter /lib folder?

If not, do it and restart

0
votes

You're looking into wrong place, the class you're missing lives in com.ibm.mq.allclient jar.

  1. Download com.ibm.mq.allclient jar along with dependencies
  2. Put the libraries somewhere to JMeter Classpath
  3. Restart JMeter to pick the libraries up

Also depending on your MQ server configuration you might need to do some coding exercise using JSR223 Sampler as JMeter JMS components most likely won't be suitable for your scenario. See IBM MQ testing with JMeter - Learn How article for more details and example configuration/code snippets.