Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8301282

JMX simple and delegation security samples don't work because of missing access control entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Delivered
    • Icon: P3 P3
    • 21
    • None
    • docs

        The JMX simple and delegation samples need additional access controls added to config/access.properties in order to run properly. Without them, the client will exit with the following exception:

        java.lang.SecurityException: Access denied! Invalid access level for requested MBeanServer operation.

        The username line in simple config/access.properties should be changed to:

        username readwrite \
                 create SimpleStandard \
                 unregister

        The username and delegate lines in delegation config/access.properties should be changed to:

        username readwrite \
                 create SimpleStandard \
                 unregister
        delegate readwrite \
                 create SimpleStandard \
                 unregister

              shkamath Sheila Kamath
              mullan Sean Mullan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: