Hello All,
I hope someone can help ... you are my last chance as I have posted on tek-tips forums, the sun.java.com developers forum, read the tomcat documentation, read this address's mail archives, contacted my web host, and still no joy !
I have recently bought some web hosting space, and when testing that all works, I get this error, when invoking a servlet from a jsp page :
java.security.AccessControlException: access denied (java.io.FilePermission /home/.sites/5/site513/web/WEB-INF/classes read)
This is what the TOMCAT_HOME/conf/tomcat.policy looks like (relative snippet)
grant codeBase "file:/home/.sites/5/site513/web/-" {
permission SocketPermission "localhost:1024-", "listen,connect,resolve";
permission java.util.PropertyPermission "*", "read,write";
permission java.io.FilePermission "/home/.sites/5/site513/-", "read,write,delete";
permission java.lang.RuntimePermission "accessClassInPackage.sun.io";
};
and this is what the server.xml looks like (snippet)
<Host name="www.mywebsite.com"> <!-- Site site513 -->
<Context path="" docBase="/home/.sites/5/site513/web" debug="0"/>
<!-- user web contexts -->
</Host>
I have checked the OS file permissions also, which are : drwxrwsr-x
To me it all looks well ??!!
I believe they are running 3.2.3 on a Linux Cobalt server.
The problem is is that I can't run tomcat in debug or security mode because its a web hosting company, and they are being less than helpful about the matter ! Neither can I gain access to the tomcat log directory.
Any ideas ?
Thanks for your time,
Regards
Ben
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
- session data across subdomains ben keeping
