All Apps and Add-ons

How to monitor weblogic data through JMX or JMS modular Inputs add-on?

surabis
New Member

I'm trying to monitor weblogic data through Jms modular inputs, Please provide required configurationsteps .

After given below details, i'm getting exception.

[jms://queue/SplunkQueue ]
activation_key=
browse_mode = all
browse_queue_only = 0
durable = 0
index = main
index_message_header = 0
index_message_properties = 0
init_mode = jndi
jms_connection_factory_name = SplunkQConnectionFactory
jndi_initialcontext_factory = weblogic.jndi.WLInitialContextFactory
jndi_provider_url =
strip_newlines = 0
jndi_user =
jndi_pass =
disabled = 0
browse_frequency = -1
hec_batch_mode = 0
hec_https = 0
output_type = stdout.

*Java home is correct.
*Python file modified according to java home path.

Error:

exception

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)

ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" Stanza jms://queue/:SplunkQueue : Error connecting : javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

Perhaps you did not copy the Weblogic jars to jms_ta/bin/lib (as per the docs).

alt text

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

Perhaps you did not copy the Weblogic jars to jms_ta/bin/lib (as per the docs).

alt text

0 Karma

surabis
New Member

Even after copying Wljmxclient.jar file to jms_ta/bin/lib still we getting same exception.

0 Karma

surabis
New Member

Error what i'm getting

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" Stanza jms://queue/:SOA_A2A : Error connecting : javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]

0 Karma

surabis
New Member

After Add WlFULLCLIENT.Jar file jms_ta/bin/lib

Exception :
+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" It has been determined via the REST API that all inputs have been disabled

Thanks in advance

0 Karma

Damien_Dallimor
Ultra Champion

Thats not an error. Thats a standard log statement when you disable your JMS inputs.

0 Karma

surabis
New Member

I unable see data on particular sourcetype. and also unable to figure out exact exception logs.

Please help me to resolve this.

Thanks in advance.

0 Karma

surabis
New Member

Errors:

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:137)

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:531)

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:248)

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.jndi.internal.RootNamingNode_WLSkel.invoke(Unknown Source)

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.jndi.internal.RootNamingNode.lookup(RootNamingNode.java:81)

+0900 ERROR ExecProcessor - message from "python "C:\Program Files\Splunk\etc\apps\jms_ta\bin\jms.py"" at weblogic.jndi.internal.ServerNamingNode.lookup(ServerNamingNode.java:584)

0 Karma

Damien_Dallimor
Ultra Champion

Maybe that required class is in a different jar : https://blogs.oracle.com/weblogicserver/managing-weblogic-servers-with-jconsole

wlclient.jar ? wlfullclient.jar ?

0 Karma

surabis
New Member

WlClient.jar

0 Karma
Get Updates on the Splunk Community!

Improve Your Security Posture

Watch NowImprove Your Security PostureCustomers are at the center of everything we do at Splunk and security ...

Maximize the Value from Microsoft Defender with Splunk

 Watch NowJoin Splunk and Sens Consulting for this Security Edition Tech TalkWho should attend:  Security ...

This Week's Community Digest - Splunk Community Happenings [6.27.22]

Get the latest news and updates from the Splunk Community here! News From Splunk Answers ✍️ Splunk Answers is ...