Hi, I have a sun cobalt linux server. With Apache tomcat installed. The jsp pages work properly, the problem is when I call a classe. java.security.AccessControlException: access denied (java.io.FilePermission /home/.sites/143/site2/web/WEB-INF/classes read) Here is my tmcat policy, I tried to grant for everything but there is nothing to do // Permissions for tomcat. // javac grant codeBase "file:${java.home}/../lib/-" { permission java.security.AllPermission; }; grant { // Allow everything for now permission java.security.AllPermission; }; // Tomcat gets all permissions grant codeBase "file:${tomcat.home}/lib/-" { permission java.security.AllPermission; }; grant codeBase "file:${tomcat.home}/classes/-" { permission java.security.AllPermission; }; // Example webapp policy // By default Tomcat grants read access on webapp dir and read of the // line.separator, path.separator, and file.separator PropertyPermissions. // Any permissions you grant here are in addition to the default. // Disabled for Cobalt Linux // grant codeBase "file:${tomcat.home}/webapps/matchcote" { // Allow the example web application to read all java properties // permission java.util.PropertyPermission "*", "read,write,delete"; // }; grant { permission java.util.PropertyPermission "*", "read"; } grant { // OS Specific properties to allow read access permission java.util.PropertyPermission "os.name", "read"; permission java.util.PropertyPermission "os.version", "read"; permission java.util.PropertyPermission "os.arch", "read";
Closing this thread and moving it to the appropiate forum, JSP. I take that back. I am just going to close this thread because it is a duplicate post already posted in Apache/Tomcat. Please refrain from cross posting. Mark [ February 24, 2003: Message edited by: Mark Spritzler ]