policy file ignored on server

"Claudia Frers" <[email protected]> Sun, 9 Sep 2007 18:02:15 +0200
Newsgroups gmane.comp.java.jspwiki.user
Message-ID <[email protected]>
My policy file is ignored on the server

Works fine on localhost but as soon as i copy my webapps to
the server, all permissions are granted and restrictions ignored.

Tried same experiment with different wiki webapps all latest stable version.
Same sad results.
Have triple checked that it uses the correct policy file.

The log file shows that I am pointing to the wrong policy file:
2007-09-09 12:49:49,441 [main] WARN com.ecyrd.jspwiki.auth.PolicyLoader  -
You have set your 'java.security.policy' to point at
'/home/claudia/file:/home/claudia/Tools/apache-tomcat-5.5.20/webapps/wiki4/WEB-INF/jspwiki.policy',
but that file does not seem to exist.  I'll continue anyway, since this may
be something specific to your servlet container.  Just consider yourself
warned.

Assumin that my webapp is called wiki5, how do I get PolicyLoader to point
to the correct wiki5 policy file?

What I want to do is compare the behavior of the two apps.I cut and pasted
wiki4 into webapps and renamed it wiki5.(I know, I know in a hurry) I
thought I could get away with making changes on the property file (change
path and name from wiki4 to wiki5) and on the policy file, replace wiki4's
lenient policy with a strict one for online use. What i think is odd is that
it work locally but not on the server. Any thoughts on how to proceed?

Thanks,
Claudia

Copy of policy file changes:
_________________________
//Protected
//Changes:
//Removed from Anonymous/Asserted
//    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
"edit";
//    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"createPages";
//    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"editProfile";
//    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
"comment";

....
Only changes to default:
grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "Anonymous" {
    permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
"view";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"editPreferences";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"login";
};

...

grant signedBy "jspwiki",
  principal com.ecyrd.jspwiki.auth.authorize.Role "Asserted" {
     permission com.ecyrd.jspwiki.auth.permissions.PagePermission "*:*",
"view";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"editPreferences";
    permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*",
"login";
};