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 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...