-
Bug
-
Resolution: Obsolete
-
Minor
-
JBossAS-4.0.2RC1
-
None
-
JBoss Version 4.0.2RC1
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