# JMX Input Plugin - Error in connecting to Weblogic JMX

**URL:** https://discuss.elastic.co/t/jmx-input-plugin-error-in-connecting-to-weblogic-jmx/252670
**Category:** Logstash
**Created:** [October 20, 2020, 11:30am UTC](https://discuss.elastic.co/t/jmx-input-plugin-error-in-connecting-to-weblogic-jmx/252670 "2020-10-20T11:30:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abidub](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@abidub](https://discuss.elastic.co/u/abidub)
#### Post date: [October 20, 2020, 11:30am UTC](https://discuss.elastic.co/t/jmx-input-plugin-error-in-connecting-to-weblogic-jmx/252670/1 "2020-10-20T11:30:20Z")

</div>

Hi there,

I am using the JMX Input Plugin and trying to connect to a Weblogic JMX service URL and getting the following error:

`[ERROR][logstash.inputs.jmx] "failed to retrieve RMIServe stub: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial`

`[ERROR] [logstash.inputs.jmx] javax.management.remote.rmi.RMIConnector.connect (javax/management/remote/rmi/RMIConnector.java:369)`

my service URL looks like this:

`service:jmx:iiop://IP:PORT/jndi/weblogic.management.mbeanservers.runtime`

I am unable to open this URL in jConsole to test it is correct, as I believe I have to pass through a JAR file when launching jConsole.  
Should I need to place a JAR file somewhere in logstash to get the above service URL working?  
If so, what location should this typically go in?

Ideally, I would like to avoid having to add/include any jar files and keep my config simple.

Many thanks in advance for any advice.

Cheers

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 17, 2020, 11:30am UTC](https://discuss.elastic.co/t/jmx-input-plugin-error-in-connecting-to-weblogic-jmx/252670/2 "2020-11-17T11:30:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
