0 Replies Latest reply on Sep 13, 2012 8:50 AM by Paul Keogh

    JMX IIOP connection issues on JB7

    Paul Keogh Novice

      I have a JMX client bean deployed as a WAR on JB 7.1.x. The bean connects to a Weblogic 9.2 mbean server.

       

      Its running with the standalone-full.xml profile.

       

      I get the following exception;

       

      Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]

       

      The same code runs perfectly in a UT using the Sun JDK and the WL client libraries.

       

      Code is;

       

      JMXServiceURL url = new JMXServiceURL(                     "service:jmx:rmi:///jndi/iiop://localhost:7001/weblogic.management.mbeanservers.domainruntime");

       

      Hashtable h = new Hashtable();

      h.put(Context.SECURITY_PRINCIPAL, "weblogic");

      h.put(Context.SECURITY_CREDENTIALS, "weblogic");         

       

      jmxc = JMXConnectorFactory.connect(url, h);

       

      Any ideas please?