0 Replies Latest reply on Oct 7, 2011 7:46 AM by Nitin Khekare

    Facing errors in JMX lookup

    Nitin Khekare Newbie

      Hi

       

      I am facing issues in JMX lookup, the stack trace for error is

       

      Caused by: javax.naming.NameNotFoundException: Name 'rmi:' not found in context ''

          at org.jboss.as.naming.util.NamingUtils.nameNotFoundException(NamingUtils.java:109)

          at org.jboss.as.naming.InMemoryNamingStore$NodeTraversingVisitor.visit(InMemoryNamingStore.java:368)

          at org.jboss.as.naming.InMemoryNamingStore$ContextNode.accept(InMemoryNamingStore.java:307)

          at org.jboss.as.naming.InMemoryNamingStore.lookup(InMemoryNamingStore.java:162)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:173)

          at org.jboss.as.naming.InitialContext.lookup(InitialContext.java:47)

          at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)

          at javax.naming.InitialContext.lookup(InitialContext.java:392)

          at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1871)

          at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1841)

          at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)

          ... 125 more

       

      the JMX url I am using is like

       

      service:jmx:rmi://localhost:2009/jndi/rmi://localhost:2009/myrmi

       

      I have tried url like

       

      service:jmx:rmi:///jndi/rmi://" + host + ":" + port + "/jmxrmi"

       

      but I am getting same errors.

       

      Am I missing something in configurations or doing something wrong?

       

      Can anybody help me in this?

       

       

      Thanks