Bug 1379412 - tomcat6 is not starting when using security manager on IBM JDK6 [NEEDINFO]
Summary: tomcat6 is not starting when using security manager on IBM JDK6
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: tomcat6
Version: 6.8
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Coty Sutherland
QA Contact: tomcat-qe
URL:
Whiteboard: tomcat6 is not starting when using se...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-26 15:49 UTC by Jan Onderka
Modified: 2016-11-01 18:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: JBEWS-90
Environment:
RHEL 6.8 java-1.6.0-ibm
Last Closed: 2016-11-01 18:53:00 UTC
Target Upstream Version:
csutherl: needinfo? (snagar)


Attachments (Terms of Use)

Description Jan Onderka 2016-09-26 15:49:37 UTC
Description of problem:
tomcat6 is not starting when using security manager on IBM JDK6 with 

How reproducible:
set at tomcat6.conf: SECURITY_MANAGER="true"
add to catalina.polisy:
// ========== SYSTEM CODE PERMISSIONS =========================================
grant codeBase "file:${catalina.home}/webapps/examples/-" {
  permission "java.lang.RuntimePermission" "accessClassInPackage.org.apache.catalina";
  permission "java.lang.RuntimePermission" "accessClassInPackage.org.apache.catalina.*";
};

and try to start tomcat6 service

Actual results:
service tomcat6 status
PID file exists, but process is not running                [FAILED]

catalina.out:
Exception in thread "main" java.lang.ExceptionInInitializerError
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:221)
        at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:171)
        at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:243)
        at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:298)
        at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:55)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:199)
Caused by: java.security.AccessControlException: Access denied (java.util.PropertyPermission java.util.logging.config.class read)
        at java.security.AccessController.throwACE(AccessController.java:121)
        at java.security.AccessController.checkPermission(AccessController.java:194)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
        at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1293)
        at java.lang.System.getProperty(System.java:404)
        at java.lang.System.getProperty(System.java:388)
        at org.apache.juli.logging.DirectJDKLog.<clinit>(DirectJDKLog.java:43)
        at java.lang.J9VMInternals.initializeImpl(Native Method)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:199)
        ... 6 more
Could not find the main class: org.apache.catalina.startup.Bootstrap.  Program will exit.


Expected results:
normal start like with openJDK1.6

Comment 4 RHEL Program Management 2016-11-01 18:53:00 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.