Getting JBAS011360: Unauthorized access ERROR while trying to invoke any MBean operations in JConsole of EAP 6

Solution Verified - Updated -

Issue

  • EAP 6.3.1 server configured in domain mode. Trying to connect to a JBoss server running on a different host controller. JMX configuration is as follows:
    domain.xml:
            <subsystem xmlns="urn:jboss:domain:jmx:1.3">
                <expose-resolved-model/>
                <expose-expression-model/>
                <remoting-connector use-management-endpoint="false"/>
            </subsystem>

            <subsystem xmlns="urn:jboss:domain:remoting:1.1">
                <connector name="remoting-connector" socket-binding="remoting" security-realm="JConsole"/>
            </subsystem>

host.xml of the server we're trying to connect to:

          <security-realm name="JConsole">
                <authentication>
                    <local default-user="$local" skip-group-loading="true"/>
                    <properties path="JConsole-users.properties" relative-to="jboss.domain.config.dir"/>
                </authentication>
            </security-realm>
  • In the property file, the username/hash for admin:admin is stored. Connecting with JConsole through the JBoss jconsole.sh/jconsole.bat script works with the username/password 'admin:admin' and fails with other combinations (as expected). We are able to see the statistics on memory, classes, etc, as expected. But while trying to invoke mbean operations ( in JConsole 'mbean' tab), we always get the following Unauthorized access ERROR, where as the expected result : as authentication clearly works, I expect to be able to invoke mbean operations.
Error invoking <operation>: javax.management.JMRuntimeException: JBAS011360: Unauthorized access

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content