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!

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

March Community Office Hours Security Series Uncovered!

Hello Splunk Community! In March, Splunk Community Office Hours spotlighted our fabulous Splunk Threat ...

Stay Connected: Your Guide to April Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars in April. This post ...