tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laura Reising <laura.reis...@arcor.de>
Subject Re: catalina.policy: "file:"?
Date Wed, 09 Jan 2002 11:05:16 GMT
Hello Roshan,

> So the grant in the snippet below uses a "file" URL to give classes from
> the ${work.dir}  read access to all files under ${doc.root} directory and
> read, write, delete access to files under ${work.dir} directory. The "-"
> following the "/" refers to all files in a directory and all its
> subdirectories

I think I understand that. But why doesn't this work for me:

<---snip--->
grant codeBase "file:${doc.root}/-" {
 permission java.io.FilePermission "${doc.root}/-", "read, write,
delete";
};
</---snip--->

Shouldn't this grand _any_ "file" (Servlet, JSP-File) in the filesystem
under "${doc.root}" the rights to read, write und delete _any_ file in
the filesystem under "${doc.root}"???

What I get is:

java.security.AccessControlException: access denied
(java.io.FilePermission
C:\Programme\ApacheGroup\jakarta-tomcat-4.0.1\webapps\jspMyAdmin\logs\parse_time_log
write)

Helpless...
Laura


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message