The Answer to Life, the Universe, and Everything

Wednesday, June 20, 2007

AccessControlException By Java

When you deploy the contents you might face the AccessControlException which is cased by java security manager. By Ubuntu packaged tomcat5.5, you can edit the policy file.

$sudo vim /etc/tomcat5.5/policy.d/99examples.policy

grant codeBase "file:${catalina.home}/webapps/gprs/-" {

The example above is the most loose security setting.

No comments: