You should not have to make any changes to policy files for this to work.
It is Tomcat itself that is unpacking the WAR files--so assigning
permissions to the WAR file itself won't do anything.  What does your
server.xml file look like?  How did you determine that WAR files weren't
automatically being unpacked?  What error did you see?

Sean Dockery
[EMAIL PROTECTED]
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com

----- Original Message -----
From: "Kenneth J Baker" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 21:13
Subject: War files / codeBase and security permissions (v4.0.4)


>
> I'm deploying a war file with unpackWARs="false".  I am trying to grant
> permissions to this war in 04webapps.policy.
>
> Here is what I've tried...
>
> Given the examples this is what I would expect to work but doesn't:
> grant codeBase "file:${catalina.home}/webapps/iface.war!/-" {
> permission java.security.AllPermission;
> };
>
>
> This doesn't work (but works if unpackWARs="true"):
> grant codeBase "file:${catalina.home}/webapps/iface/-" {
> permission java.security.AllPermission;
> };
>
>
> This works because this is where tomcat extracts the war to (with
unpackWARs set to false)
> grant codeBase "file:${catalina.home}/work/Standalone/localhost/iface/-" {
> permission java.security.AllPermission;
> };
>
>
> What is the correct way to specify permissions to give to a war file?
>
> Thanks,
> Ken
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to