https://bz.apache.org/bugzilla/show_bug.cgi?id=59247
Bug ID: 59247
Summary: Using the IBM JDK with the security manager results in
java.lang.RuntimePermission warning
Product: Tomcat 8
Version: 8.0.32
Hardware: PC
OS: Linux
Status: NEW
Severity: minor
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Created attachment 33707
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33707&action=edit
policy patch proposal
When using the IBM JDK and the security manager the following warnings are
logged:
WARNING [localhost-startStop-1]
org.apache.juli.ClassLoaderLogManager.readConfiguration Reading
logging.properties is not permitted in some context. See "per context logging"
in the default catalina.policy file.
WARNING [localhost-startStop-1]
org.apache.juli.ClassLoaderLogManager.readConfiguration Original error was:
Access denied ("java.lang.RuntimePermission"
"accessClassInPackage.org.apache.catalina.loader")
I do not observe any negative effects of this warning, however I am only doing
minimal testing and would like someone to review it to validate whether or not
it is an issue. I assume that something not being able to load the
logging.properties means that it isn't logging either.
It looks like adding the permission to the catalina.policy resolves the
warning. I am attaching the patch which seems to work for me along with a few
other files for review. Note that this does not seem to occur on trunk (though
it does throw some warnings also), but it does on tomcat8 and previous
versions. Also note that the added permission in the patch proposal does not
exist in trunk, so I'm not sure if it is the way to go or not.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]