Class Not Found error when monitoring MQ classes

Document ID : KB000104928
Last Modified Date : 05/07/2018
Show Technical Document Details
Issue:
Monitoring a standalone java application which has some MQ.
Getting a ClassNotFound exception
MQ: Problem CC=2, RC=2195, MSG:MQJE001: Completion Code '2', Reason '2195'.
 *** MQ: Shutting down the Trigger Listener java.lang.ClassNotFoundException: com.wily.powerpack.websphereMQ.agent.extensions.tracer.hc2.MQBackendTracer
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:263)
at com.wily.introscope.agent.extension.DynamicClassLookup.loadDynamicClassEntry(DynamicClassLookup.java:230)
at com.wily.introscope.agent.trace.TracerFactoryLoader.createTracerFactory(TracerFactoryLoader.java:66)
at com.wily.introscope.agent.trace.TracerAdministrator.createTracerFactories(TracerAdministrator.java:699)
at com.wily.introscope.agent.trace.TracerAdministrator.createProbeInformation(TracerAdministrator.java:662)
at com.wily.introscope.agent.trace.TracerAdministrator.access$0(TracerAdministrator.java:649)
at com.wily.introscope.agent.trace.TracerAdministrator$ProbeInformationCreator.IProbeInformationCreator_createProbeInformation(TracerAdministrator.java:806)
at com.wily.introscope.agent.trace.ProbeLookup.getProbeInformation(ProbeLookup.java:102)
at com.wily.introscope.agent.trace.TracerAdministrator.getProbeInformation(TracerAdministrator.java:639)
at com.wily.introscope.agent.trace.TracerAdministrator.loadParameterizedTracer(TracerAdministrator.java:456)
at com.wily.introscope.agent.enterprise.EnterpriseAgent.IAgent_loadParameterizedTracer(EnterpriseAgent.java:999)
at com.wily.introscope.agent.AgentShim.ProbeBuilderEntryPoint_loadParameterizedTracer(AgentShim.java:1270)
at com.ibm.mq.MQQueueManager.unregisterQueue(MQQueueManager.java)
at com.ibm.mq.MQQueue.close(MQQueue.java:911)

webspheremq.pbl has been intentionally listed in the agent profile to obtain MQ metrics
Environment:
APM 10.5 in reported case but valid for any supported release for MQ Java connector monitoring
Resolution:
The class is contained in MQNameFormatter.jar, which would need to be in the /core/ext folder, however it is not there by default.
You will find it in wily/examples/PowerPackForWebSphereMQ/ext so it needs to be copied from that folder into wily/core/ext and restart the application.