[
http://jira.jboss.com/jira/browse/JBAS-1703?page=all ]
Dimitris Andreadis updated JBAS-1703:
-------------------------------------
Component/s: Management services
(was: JMX)
Fix Version/s: (was: JBossAS-4.2.0.CR1)
inspectMBean.jsp throws AccessControlException
----------------------------------------------
Key: JBAS-1703
URL:
http://jira.jboss.com/jira/browse/JBAS-1703
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Management services
Affects Versions: JBossAS-4.0.2RC1
Environment: JBoss Version 4.0.2RC1
Reporter: Roland R?z
Priority: Minor
The inspectMBean.jsp page throws a AccessControlException
(javax.management.MBeanServerPermission is
missing) although the codesource from where the JSP servlet is loaded (I use precompiled
JSPs) has those
permission.
This is the code section where the AccessControlException is thrown
for(int a = 0; a < attributeInfo.length; a ++)
{
final MBeanAttributeInfo attrInfo = attributeInfo[a];
String attrName = attrInfo.getName();
String attrType = attrInfo.getType();
AttrResultInfo attrResult = Server.getMBeanAttributeResultInfo(objectNameString,
attrInfo);
...
You should use AccessController.doPrivileged to execute the code
AttrResultInfo attrResult = Server.getMBeanAttributeResultInfo(objectNameString,
attrInfo);
Regards
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira