java.security.AccessControlException: access denied (java.io.FilePermission /var/lib/tomcat5.5/webapps/birt-viewer/documents
write)
, because it couldn't create the documents directory in it's installation directory.Some googling showed that the problem was that in Debian/Ubuntu Tomcat is started using the java security manager. The solution given was to deactivate the security manager in
/etc/init.d/tomcat5.5
, but that didn't quite convince me. I simply granted the web application all permissions by appending to /etc/tomcat5.5/policy.d/50user.policy
:
grant codeBase "file:${catalina.base}/webapps/birt-viewer/-" {
permission java.security.AllPermission;
};
2 Kommentare:
Hi !!
I'm Brazilian.. i'm looking for this for days and days.. guy, you "save my life" :)
thank's a lot for this post.
A Hug []
PS: excuse-me my poor english ;)
Douglas, I'm glad this blog works just like I expected :-)
Kommentar veröffentlichen