I am not able to grant security permissions on individual jar files. Can someone tell me what I'm doing wrong?
In my policy file (CATALINA_HOME/conf/catalina.policy) I have the following setting: grant codeBase "file:${catalina.home}/-" { permission java.security.AllPermission; }; I would think this would grant all permissions to all jar files, classes, etc under the catalina directory, including webapps' classes/jars. However, I keep getting the following (I set security debug output according to the following -- java.security.debug=access,failure): access: access denied (java.util.PropertyPermission log4j.defaultInitOverride read) java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Thread.java:1071) at java.security.AccessControlContext.checkPermission(AccessControlContext. java:259) at java.security.AccessController.checkPermission(AccessController.java:401 ) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1291) at java.lang.System.getProperty(System.java:611) at org.apache.log4j.helpers.OptionConverter.getSystemProperty(OptionConvert er.java:92) at org.apache.log4j.LogManager.<clinit>(LogManager.java:117) at org.apache.log4j.Logger.getLogger(Logger.java:85) at com.cssc.security.CognisecAuthFilter$1.run(CognisecAuthFilter.java:85) at java.security.AccessController.doPrivileged(Native Method) at com.cssc.security.CognisecAuthFilter.<clinit>(CognisecAuthFilter.java:83 ) ... access: domain that failed ProtectionDomain (jar:file:C:/tomcat/webapps/cssc/WEB-INF/lib/log4j-1.2.6.jar!/org/apache /log4j/helpers/OptionConverter.class <no certificates>) WebappClassLoader available: Extension[Struts Framework, implementationVendor=Apache Software Foundation, implementationVendorId=org.apache, implementationVersion=1.0.2, specificationVendor=Apache Software Foundation, specificationVersion=1.0] delegate: false repositories: /WEB-INF/classes/ required: ----------> Parent Classloader: + other stuff. What gives? I don't understand why this is not working. Please help! Running Tomcat 4.0.4, J2SDK 1.4.0, on a winxp box Thanks, John -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>