Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1703

inspectMBean.jsp throws AccessControlException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • No Release
    • JBossAS-4.0.2RC1
    • Web Console
    • 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

              Unassigned Unassigned
              wv-javacoder Roland Räz (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: