You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ulrich Rueth <ul...@gmx.de> on 2001/11/06 14:49:24 UTC

codeBase not accepted

Hi,
I'm using Tomcat4.0.1 with a security manager and having trouble with the
codeBase statement in the catalina.policy file. As long as I leave the codeBase
argument away, no problems. As soon as I add the codeBase argument (even
with absolute pathes to show that it's no relative path problem), I get a
java.io.FilePermission exception. Tomcat cannot access my application properties
file. Here's the snippet from my catalina.policy file:

grant codeBase "file:/jakarta-tomcat-4.0.1/webapps/myapp/-" { 
  permission java.io.FilePermission "/jakarta-tomcat-4.0.1/webapps/myapp/-",
"read,write";
};

I get the following exception:

java.security.AccessControlException: access denied (java.io.FilePermission
/jakarta-tomcat-4.0.1/webapps/myapp/application.properties read)

Can anybody help?
Thanks,
Ulrich

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>