Getting Data In

Unable to initialize modular input "jmx" defined inside the app "Splunk_TA_jmx": Introspecting scheme=jmx: script running failed (exited with code 1).

adriannicolicea
New Member

Hi,

I am receiving the following error message in my inbox : Unable to initialize modular input "jmx" defined inside the app "Splunk_TA_jmx": Introspecting scheme=jmx: script running failed (exited with code 1).

I have Java jdk-11.0.2 and jre 1.8.0_92. The JAVA_HOME path is defined in /opt/splunk/etc/splunk-launch.conf : JAVA_HOME=/opt/data/jdk-11.0.2/bin/

The system's default JAVA_HOME is /usr/lib/jvm/jre/ .

When running the command ./splunk cmd /usr/bin/python /opt/splunk/etc/apps/Splunk_TA_jmx//bin/jmx.py --scheme I receive the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext
at com.splunk.modinput.ModularInput.marshallObjectToXML(Unknown Source)
at com.splunk.modinput.ModularInput.sendScheme(Unknown Source)
at com.splunk.modinput.ModularInput.doScheme(Unknown Source)
at com.splunk.modinput.ModularInput.init(Unknown Source)
at com.splunk.jmx.JMXModularInputV3.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 5 more

The question is, where do I get JAXBContext from, where do I place it and what should I point the CLASSPATH variable to, in order for the add-on to work?

Tags (4)
0 Karma

tprzelomiec
Splunk Employee
Splunk Employee

Assuming you've got your java installed and the path setup correctly.

Go here:
https://javaee.github.io/jaxb-v2/
Download the standalone distribution
unzip that directory
copy all the .jar files to .../jms_ta/bin/lib/
restart splunk

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...