<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">I am using GenericJMX plugin in order to connect to weblogic MBean. Here is my connectd.conf:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><Plugin "java"><br>    JVMArg "-verbose:jni"<br>    JVMArg "-<span style="font-weight: bold;">Djava.class.path</span>=<span style="font-weight:
 bold;">/opt/collectd/share/collectd/java/tmp/wlfullclient.jar</span>:/opt/collectd/share/collectd/java/tmp/collectd-api.jar:/opt/collectd/share/collectd/java/tmp/generic-jmx.jar"<br>    JVMArg "-<span style="font-weight: bold;">Djava.naming.factory.initial=weblogic.jndi.WLInitialContextFactory</span>"<br>    JVMArg "-Dweblogic.security.TrustKeyStore=DemoTrust"<br>    JVMArg "-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote"<br><br>    <br>    <br>    LoadPlugin "org.collectd.java.GenericJMX"<br>        <Plugin "GenericJMX"><br>        <br>        <MBean "JMSDestinationRuntimeMBean"><br>          ObjectName "java.lang:type=MessagesCurrentCount"<br>         
 InstancePrefix "webLogic."<br>          InstanceFrom "punvm."<br>          <Value><br>            Type "web_logic"<br>            InstancePrefix ""<br>            InstanceFrom "punvm_instance"<br>            Table false<br>            Attribute "MessagesCurrentCount"<br>          </Value><br>        </MBean><br>        <br>        <Connection><br>Host "punws-amitk1"<br><br>ServiceURL
 "service:jmx:iiop://punws-amitk1:7001/jndi/weblogic.management.mbeanservers.domainruntime"<br>          User "weblogic"<br>          Password "weblogic123"<br>          Collect "JMSDestinationRuntimeMBean"<br>        </Connection><br><br>    </Plugin>    <br><br></Plugin></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">In the above
 collectd.conf, I want to connect to runtime MBean using weblogic initial context factory "weblogic.jndi.WLInitialContextFactory". But if I start the collectd, I get the following error:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="font-weight: bold;">[2013-03-22 14:23:31] GenericJMXConfConnection: Creating MBean server connection failed: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic/jndi/WLInitialContextFactory]</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new
 roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Note that I have the class WLInitialContextFactory into wlfullclient.jar.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Do you know what is the reason behind getting ClassNotFoundException even though the classpath is properly given?</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">Thanks,</div><div style="color: rgb(0, 0, 0); font-size:
 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;">-Anand<br></div></div></body></html>