Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AccessControlException on Tomcat

Status
Not open for further replies.

sedj

Programmer
Aug 6, 2002
5,610
Hello people,

I am getting the below error on Tomcat which is hosted on a "buy web space on our server" type outfit :

java.security.AccessControlException: access denied (java.io.FilePermission /home/.sites/5/site513/web/WEB-INF/classes read)

This occurs when I am invoking a servlet from a jsp page. I'm thinking that the error is (obviously) due to the permissions on directories which the servlet is trying to access (or rather lying in), but am unsure of how to negate the error. I've tryed adding a .java.policy file in my home directory on their server, and tryed fiddling about with various java.security and java.io permission classes, but to no avail ... in the past I've always done servlet stuff on my machine at home, so am in a new world with this "remote-hosting on someone else's server" type malarky ... any ideas ?!

Is this something I need to add myself - or are permissions on my directories on their Sun Cobalt server incorrectly set up.

Thanks,

Ben
 
I should probably add that web.xml is present, and the code all execute fine on my Tomcat server at home ...

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top