All Apps and Add-ons

Why am i getting JMSRuntime Exception NoClassDefFoundError attempting to connect splunk to MQ via bindings file

stlarsen
New Member

Running Splunk 7.1.1 on a Windows 7 Enterprise VM. Followed instructions for setting up JMS Messaging Module to connect to remote MQ Queue using connection factory. Copied different versions of MQ client jar files (8.0.0.10, 7.5.x.x) to the jms_ta folder and got different errors, but still can't get to the point where it actually tries connecting to the remote MQ Queue Manager. These are the messages I am seeing in the splunkd.log:

07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" Stanza jms://queue/:SplunkQueue : Error connecting : java.lang.NoClassDefFoundError: javax/jms/JMSRuntimeException
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at com.ibm.mq.jms.MQConnectionFactoryFactory.getObjectInstance(MQConnectionFactoryFactory.java:83)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:321)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at javax.naming.InitialContext.lookup(InitialContext.java:417)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.connect(Unknown Source)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at com.splunk.modinput.jms.JMSModularInput$MessageReceiver.run(Unknown Source)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" Caused by: java.lang.ClassNotFoundException: javax.jms.JMSRuntimeException
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
07-19-2018 08:06:55.187 -0600 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" ... 7 more

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

I'm guessing that the jms provider jars for MQ that you are using are referring to javax.jms.JMSRuntimeException , which is not shipped in the core JMS App. Try using MQ jars pre version 8.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

I'm guessing that the jms provider jars for MQ that you are using are referring to javax.jms.JMSRuntimeException , which is not shipped in the core JMS App. Try using MQ jars pre version 8.

0 Karma

stlarsen
New Member

Thanks Damien. I had tried that before with no success, but based on your response, I completely reinstalled everything, then copied in the MQ v7 jar files and it started right up!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Keep the Learning Going with the New Best of .conf Hub

Hello Splunkers, With .conf26 getting closer, there’s already a lot of excitement building around this year’s ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

How to find the worst searches in your Splunk environment and how to fix them

Everyone knows Splunk is a powerful platform for running searches and doing data analytics. Your ...