title: java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read)
body: <p>I am trying to deploy me application to Tomcat 5.5 on Debian Lenny. I am getting the following exception:</p>
  
  <pre><code>java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read)
  </code></pre>
  
  <p>I'm not sure what to do.</p>
  
  <p><strong>Solution</strong></p>
  
  <p>Add the following line to /etc/tomcat5.5/policy.d/04webapps.policy:</p>
  
  <pre><code>grant codeBase "file:/var/lib/tomcat5.5/webapps/mywebapp/-" { permission java.security.AllPermission; };
  </code></pre>