glassfish
  1. glassfish
  2. GLASSFISH-21044

GlassFish module can't use Javac API with security manager / JavaSE8

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: 4.0
    • Fix Version/s: 4.1
    • Component/s: security
    • Labels:
      None
    • Environment:

      JavaSE 8

      Description

      This happens for instance when deploying an app using JSP or CMP, while running GlassFish with JavaSE8 and security manager turned on.
      Here is what can be seen in the server.log

      [2014-04-15T13:06:45.438+0200] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core.security] [tid: _ThreadID=44 _ThreadName=admin-listener(4)] [timeMillis: 1397560005438] [levelValue: 800] [[
        JACC Policy Provider: Failed Permission Check, context(null)- permission(("java.lang.reflect.ReflectPermission" "suppressAccessChecks"))]]
      
      [2014-04-15T13:06:45.446+0200] [glassfish 4.0] [SEVERE] [] [] [tid: _ThreadID=44 _ThreadName=Thread-9] [timeMillis: 1397560005446] [levelValue: 1000] [[
        An exception has occurred in the compiler (1.8.0-internal). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Tha
      nk you.]]
      

      Note that if one adds the mentioned permission under a grant for unknown code, it works.

        Issue Links

          Activity

          Hide
          JeffTancill added a comment -
          Show
          JeffTancill added a comment - Closed as duplicate of https://java.net/jira/browse/GLASSFISH-21012

            People

            • Assignee:
              Nithya Ramakrishnan
              Reporter:
              Romain Grécourt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: