Getting JBAS011360: Unauthorized access ERROR while trying to invoke any MBean operations in JConsole of EAP 6
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 JBossjconsole.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 invokembean operations
( in JConsole 'mbean' tab), we always get the followingUnauthorized 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.