You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Kenneth J Baker <ba...@umich.edu> on 2003/02/09 05:13:19 UTC
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: War files / codeBase and security permissions (v4.0.4)
Posted by Sean Dockery <se...@sbdconsultants.com>.
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
sean@sbdconsultants.com
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
----- Original Message -----
From: "Kenneth J Baker" <ba...@umich.edu>
To: "Tomcat Users List" <to...@jakarta.apache.org>
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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org