Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Java.security.AccessControlException: access denied (java.io.FilePermission /usr/share/java/jsp-api-2.0.jar read)

0

222 views

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.

asked January 14, 2011 2:17 am CST
posted via StackOverflow

2 Answers

0
 

try chmod +r /usr/share/java/jsp-api-2.0.jar

answered January 14, 2011 2:23 am CST
3
Best answer
 

I smells like an SecurityManager.

It is a message from the Java Security-Manager not from the filesystem. A class within this jar-archive tries to access a file, which is not allowed by the policy.

Take a look at this really similar problem: http://www.mkyong.com/tomcat/tomcat-javasecurityaccesscontrolexception-access-denied-loggingproperties-read/

The Solution ist to allow reading of files in the catalina.policy

answered January 17, 2011 1:18 am CST

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Java regex help
January 7, 2011
Java regex help
January 12, 2011
Java regular expression
December 31, 2010
Small server using java?
January 11, 2011
Doubt in JAVA and tomcat
January 12, 2011