Why does JBoss log a "javax.management.JMRuntimeException: JBAS011360: Unauthorized access" error when invoking MBeanServer operations?
Issue
-
Why does
JBoss EAPlog ajavax.management.JMRuntimeException: JBAS011360: Unauthorized accesserror when invokingMBeanServeroperations? -
We are getting
javax.management.JMRuntimeException: JBAS011360: Unauthorized accesswhen invokingMBeanServeroperations. The odd thing is that this only happens if the java security manager is enabled. I can reproduce this by callingMBeanServer.isRegistered()in a servlet'sdoGet()method. If the security manager is disabled, the call works. -
It looks like the user's permissions (
userPermissionsinorg.jboss.as.controller.access.permission.ManagementPermissionAuthorizer.authorize()) are different depending on whether or not the security manager is enabled or disabled:
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
