inspectMBean.jsp throws AccessControlException
----------------------------------------------
Key: JBJMX-90
URL: http://jira.jboss.com/jira/browse/JBJMX-90
Project: JBoss JMX
Type: Bug
Versions: JBossAS-4.0.1
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-Development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-development