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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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