Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-5100

JMX client does not work inside web application (servlet)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.0.2.Final, 7.1.1.Final
    • None
    • None
    • Hide

      modify connection url / path / attribute on a remote alive MBeanServer and put this code in a doGet servlet method :

      ObjectName objectName = new ObjectName("jgroups:type=protocol,cluster=\"cluster\",protocol=GMS");
      JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://192.168.47.23:50000/jmxrmi");
      JMXConnector jmxc = JMXConnectorFactory.connect(url, null);
      MBeanServerConnection connection = jmxc.getMBeanServerConnection();
      Object result =(Object) connection.getAttribute (objectName, "LocalAddress");

      access to the servlet produce error mentionned above.

      Show
      modify connection url / path / attribute on a remote alive MBeanServer and put this code in a doGet servlet method : ObjectName objectName = new ObjectName("jgroups:type=protocol,cluster=\"cluster\",protocol=GMS"); JMXServiceURL url = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://192.168.47.23:50000/jmxrmi"); JMXConnector jmxc = JMXConnectorFactory.connect(url, null); MBeanServerConnection connection = jmxc.getMBeanServerConnection(); Object result =(Object) connection.getAttribute (objectName, "LocalAddress"); access to the servlet produce error mentionned above.
    • Workaround Exists
    • Hide

      it s not really a workaround but the same servlet with same code is working on JBoss-AS 6.1.0 and Tomcat 7.0.27

      Show
      it s not really a workaround but the same servlet with same code is working on JBoss-AS 6.1.0 and Tomcat 7.0.27

    Description

      a simple jmx client connection to get an attribute on a remote MBeanServer does not work and produce errors at runtime :

      Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: rmi://192.168.47.23:50000/jmxrmi – service jboss.naming.context.java.rmi:."192.168.47.23:50000".jmxrmi

      and

      Caused by: javax.naming.NameNotFoundException: rmi://192.168.47.23:50000/jmxrmi – service jboss.naming.context.java.rmi:."192.168.47.23:50000".jmxrmi

      Attachments

        Activity

          People

            Unassigned Unassigned
            francoisbillard Francois Billard (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: