Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-42050

If tomcat's java security manager is enabled, the JVM will deny access to the tomcat-juli.jar

    Details

      Description

      Starting tomcat with java.security enabled will result in a java.lang.access denied for the org.apache.juli.logging/LogFactory.class

      1. In the portal source, run:
        ant -f build-dist.xml unzip-tomcat -Djava.security=true
        
      2. Then run ant all.
      3. Start the tomcat bundle.
      4. Stacktrace:
      D:\6.2.x-ee\bundles\tomcat-7.0.42\bin>catalina run
      Using CATALINA_BASE:   "D:\6.2.x-ee\bundles\tomcat-7.0.42"
      Using CATALINA_HOME:   "D:\6.2.x-ee\bundles\tomcat-7.0.42"
      Using CATALINA_TMPDIR: "D:\6.2.x-ee\bundles\tomcat-7.0.42\temp"
      Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_40"
      Using CLASSPATH:       "D:\6.2.x-ee\bundles\tomcat-7.0.42\bin\bootstrap.jar;D:\6.2.x-ee\bundles\tomcat-7.0.42\bin\tomcat-juli.jar"
      Exception in thread "main" java.lang.ExceptionInInitializerError
              at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
              at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
              at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
              at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
      Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "java.util.logging.config.class" "read")
              at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
              at java.security.AccessController.checkPermission(AccessController.java:559)
              at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
              at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1302)
              at java.lang.System.getProperty(System.java:707)
              at org.apache.juli.logging.DirectJDKLog.<clinit>(DirectJDKLog.java:43)
              ... 4 more
      
      

      Expected results:
      Liferay starts on Tomcat.

      Actual results:
      Liferay does not start

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 50 weeks, 5 days ago

                Packages

                Version Package
                6.1.X EE
                6.2.X EE
                7.0.0 M1