tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laura Reising <>
Subject Re: Give webapps FilePermissions in catalina.policy
Date Mon, 07 Jan 2002 16:58:22 GMT
Hello Frank, hello list,

> I believe the syntax is a bit different for web apps
> as indicated by the example in the file.  Here is
> my spec for AllPermission for myApp.  You should be able
> to modify it for your purposes:
> grant codeBase "file:${catalina.home}/webapps/myApp/-" {
>                         permission;
> };

thank you very much for the code!

When I modify my catalina.policy to:

grant codeBase "file:${catalina.home}/webapps/jspMyAdmin/-" {

...the application works. But giving "AllPermission" certainly isn't what
I want. So I tried this:

grant codeBase "file:${catalina.home}/webapps/jspMyAdmin/-" {
"file:${catalina.home}/webapps/jspMyAdmin/-", "read, write, delete";

Here I get the error again:

<---snip---> access denied

Is there any other Permission I have to set to make my applications make
writing files?

Besides with this approach I have to make an entry for every application.
Isn't there a way to say:
"Give any webapp the FilePermissions read, write und delete for the files
in the specific doc-root."?

Thanx again

To unsubscribe:   <>
For additional commands: <>
Troubles with the list: <>

View raw message