User.policy

Edit the following file:

/etc/tomcat5.5/policy.d/50user.policy

Insert at the end of the file (replacing "MyApp" with the context of your app):

grant codeBase "file:${catalina.base}/webapps/MyApp/-" { permission java.security.AllPermission; };

Restart Tomcat:

/etc/init.d/tomcat5.5 stop /etc/init.d/tomcat5.5 start