java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read)
问题 I am trying to deploy me application to Tomcat 5.5 on Debian Lenny. I am getting the following exception: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read) I'm not sure what to do. Solution Add the following line to /etc/tomcat5.5/policy.d/04webapps.policy: grant codeBase "file:/var/lib/tomcat5.5/webapps/mywebapp/-" { permission java.security.AllPermission; }; 回答1: I smells like an SecurityManager. It is a message from the Java