glassfish
  1. glassfish
  2. GLASSFISH-18781

permission(("java.lang.RuntimePermission" "closeClassLoader"))

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b37
    • Fix Version/s: 4.0
    • Component/s: security
    • Labels:
      None

      Description

      I'm experiencing the same issue as http://java.net/jira/browse/GLASSFISH-16886 on glassfish V4.

      I'm getting the following permission check on several hundred CTS tests.
      [#|2012-06-04T12:37:36.556-0400|INFO|44.0|javax.enterprise.system.core.security|_ThreadID=65;_ThreadName=Thread-2;|JACC Policy Provider: Failed Permission Check, context(null)- permission(("java.lang.RuntimePermission" "closeClassLoader"))|#]

      Adding the following grant to the server.policy fixes the issue:
      grant

      { permission java.lang.RuntimePermission "closeClassLoader"; }

      ;

        Activity

        Hide
        Dennis MacConnell added a comment -

        I forgot to mention that this only fails with security manager enabled.

        Show
        Dennis MacConnell added a comment - I forgot to mention that this only fails with security manager enabled.
        Hide
        JeffTancill added a comment -

        Added grant to server.policy (rev 60114) in both:
        ./main/nucleus/admin/template/src/main/resources/config and
        ./main/nucleus/security/core/src/main/resources/config

        QL full profile passed.

        Show
        JeffTancill added a comment - Added grant to server.policy (rev 60114) in both: ./main/nucleus/admin/template/src/main/resources/config and ./main/nucleus/security/core/src/main/resources/config QL full profile passed.

          People

          • Assignee:
            JeffTancill
            Reporter:
            Dennis MacConnell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: