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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...