<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to initialize modular input &amp;quot;jmx&amp;quot; defined inside the app &amp;quot;Splunk_TA_jmx&amp;quot;: Introspecting scheme=jmx: script running failed (exited with code 1). in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-initialize-modular-input-quot-jmx-quot-defined-inside/m-p/385482#M69242</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am receiving the following error message in my inbox : &lt;CODE&gt;Unable to initialize modular input "jmx" defined inside the app "Splunk_TA_jmx": Introspecting scheme=jmx: script running failed (exited with code 1).&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I have Java jdk-11.0.2 and jre 1.8.0_92. The JAVA_HOME path is defined in &lt;CODE&gt;/opt/splunk/etc/splunk-launch.conf&lt;/CODE&gt; : &lt;CODE&gt;JAVA_HOME=/opt/data/jdk-11.0.2/bin/&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The system's default JAVA_HOME is &lt;CODE&gt;/usr/lib/jvm/jre/&lt;/CODE&gt; .&lt;/P&gt;

&lt;P&gt;When running the command &lt;CODE&gt;./splunk cmd /usr/bin/python /opt/splunk/etc/apps/Splunk_TA_jmx//bin/jmx.py --scheme&lt;/CODE&gt; I receive the following error message: &lt;BR /&gt;
&lt;EM&gt;Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.marshallObjectToXML(Unknown Source)&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.sendScheme(Unknown Source)&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.doScheme(Unknown Source)&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.init(Unknown Source)&lt;BR /&gt;
        at com.splunk.jmx.JMXModularInputV3.main(Unknown Source)&lt;BR /&gt;
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext&lt;BR /&gt;
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)&lt;BR /&gt;
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)&lt;BR /&gt;
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)&lt;BR /&gt;
        ... 5 more&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;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? &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:15:19 GMT</pubDate>
    <dc:creator>adriannicolicea</dc:creator>
    <dc:date>2020-09-29T23:15:19Z</dc:date>
    <item>
      <title>Unable to initialize modular input "jmx" defined inside the app "Splunk_TA_jmx": Introspecting scheme=jmx: script running failed (exited with code 1).</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-initialize-modular-input-quot-jmx-quot-defined-inside/m-p/385482#M69242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am receiving the following error message in my inbox : &lt;CODE&gt;Unable to initialize modular input "jmx" defined inside the app "Splunk_TA_jmx": Introspecting scheme=jmx: script running failed (exited with code 1).&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I have Java jdk-11.0.2 and jre 1.8.0_92. The JAVA_HOME path is defined in &lt;CODE&gt;/opt/splunk/etc/splunk-launch.conf&lt;/CODE&gt; : &lt;CODE&gt;JAVA_HOME=/opt/data/jdk-11.0.2/bin/&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The system's default JAVA_HOME is &lt;CODE&gt;/usr/lib/jvm/jre/&lt;/CODE&gt; .&lt;/P&gt;

&lt;P&gt;When running the command &lt;CODE&gt;./splunk cmd /usr/bin/python /opt/splunk/etc/apps/Splunk_TA_jmx//bin/jmx.py --scheme&lt;/CODE&gt; I receive the following error message: &lt;BR /&gt;
&lt;EM&gt;Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/JAXBContext&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.marshallObjectToXML(Unknown Source)&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.sendScheme(Unknown Source)&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.doScheme(Unknown Source)&lt;BR /&gt;
        at com.splunk.modinput.ModularInput.init(Unknown Source)&lt;BR /&gt;
        at com.splunk.jmx.JMXModularInputV3.main(Unknown Source)&lt;BR /&gt;
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBContext&lt;BR /&gt;
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583)&lt;BR /&gt;
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)&lt;BR /&gt;
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)&lt;BR /&gt;
        ... 5 more&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;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? &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:15:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-initialize-modular-input-quot-jmx-quot-defined-inside/m-p/385482#M69242</guid>
      <dc:creator>adriannicolicea</dc:creator>
      <dc:date>2020-09-29T23:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to initialize modular input "jmx" defined inside the app "Splunk_TA_jmx": Introspecting scheme=jmx: script running failed (exited with code 1).</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unable-to-initialize-modular-input-quot-jmx-quot-defined-inside/m-p/385483#M69243</link>
      <description>&lt;P&gt;Assuming you've got your java installed and the path setup correctly.&lt;/P&gt;

&lt;P&gt;Go here:&lt;BR /&gt;
&lt;A href="https://javaee.github.io/jaxb-v2/"&gt;https://javaee.github.io/jaxb-v2/&lt;/A&gt;&lt;BR /&gt;
Download the standalone distribution&lt;BR /&gt;
unzip that directory&lt;BR /&gt;
copy all the .jar files to .../jms_ta/bin/lib/&lt;BR /&gt;
restart splunk&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 22:37:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unable-to-initialize-modular-input-quot-jmx-quot-defined-inside/m-p/385483#M69243</guid>
      <dc:creator>tprzelomiec</dc:creator>
      <dc:date>2019-03-04T22:37:57Z</dc:date>
    </item>
  </channel>
</rss>

