Can I create a generic JMX server resource in JBoss ON that connects to JBoss EAP 6 or 7?

Solution Verified - Updated -


  • How to view JMX services in JON server to perform operations like in JConsole?
  • I get the exception "Necessary classes not found for remote connection...".
  • How to configure the JMX plug-in in to connect to JBoss Application Server (AS) 7 or JBoss Enterprise Application Platform (EAP) 6/7?
  • JMX server connection fails with the following error:

    ERROR [WorkerThread#0[]] (rhq.core.pc.inventory.InventoryManager)- Manual add failed for resource of type [JMX Server] and parent resource id [10001]
        at $Proxy70.discoverResource(Unknown Source)
        at org.rhq.core.pc.inventory.InventoryManager.discoverResource(
        at org.rhq.core.pc.inventory.InventoryManager.manuallyAddResource(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
    Caused by: java.lang.Exception: Discovery component invocation failed.
        at org.rhq.core.pc.util.DiscoveryComponentProxyFactory$
    Caused by: java.lang.RuntimeException: Failed to connect to JVM with connector address [service:jmx:remoting-jmx://].
        at org.rhq.plugins.jmx.JMXDiscoveryComponent.discoverResource(
    Caused by: org.mc4j.ems.connection.EmsConnectException: Could not connect [service:jmx:remoting-jmx://] org.mc4j.ems.connection.EmsConnectException: Malformed url
        at org.rhq.plugins.jmx.JMXDiscoveryComponent.discoverResource(
        ... 10 more
    Caused by: org.mc4j.ems.connection.EmsConnectException: Malformed url
        ... 11 more
    Caused by: Unsupported protocol: remoting-jmx
        ... 12 more
  • Can the agent connect to JBoss EAP 6 as a JMX client?


  • Red Hat JBoss Operations Network (ON) 3.1.2, 3.2, 3.3
  • Red Hat JBoss Enterprise Application Platform (EAP) 6.0, 6.0.1, 6.4, 7
  • Red Hat JBoss Application Server (AS) 7 plug-in for JBoss ON
  • Red Hat JBoss Enterprise Application Platform 7 (EAP7) plug-in for JBoss ON
  • JBoss EAP (versions 6.0 and 6.1) has been configured with the JMX module enabled (urn:jboss:domain:jmx) and its show-model element set to true:

            <subsystem xmlns="urn:jboss:domain:jmx:1.1">
                <show-model value="true"/>
  • JBoss EAP (versions after 6.1) has been configured in the following way:

           <subsystem xmlns="urn:jboss:domain:jmx:1.3">

    Note: The existance of the expose-resolved-model child is translated into the show-model=true attribute in the older versions of EAP 6 (6.0.1 and 6.1)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In