You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Rolf Schumacher <ma...@august.de> on 2006/04/18 11:10:30 UTC
what about a server specific web.xml tailoring?
Dear long time Tomcat operators,
I get new versions of a war file very often.
Due to authorization constrains I have to place
some extra security-constraints clauses into it
- every time I deploy a new version.
Is there a way to tell Tomcat to get the web.xml
from a different place than WEB-INF for a
particular application even if the war file
supplies one?
Rolf
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: what about a server specific web.xml tailoring?
Posted by Rolf Schumacher <ma...@august.de>.
David Smith wrote:
> I would say no. This is an issue for build management, not tomcat. May
> I suggest you put together a short script that explodes the war,
> replaces the web.xml, and then re-zips the webapp back to a war. The
> whole thing could easily be done with a shell script or batch file -
> don't even need ant.
>
> --David
>
> Rolf Schumacher wrote:
>> Dear long time Tomcat operators,
>>
>> I get new versions of a war file very often.
>> Due to authorization constrains I have to place
>> some extra security-constraints clauses into it
>> - every time I deploy a new version.
>>
>> Is there a way to tell Tomcat to get the web.xml
>> from a different place than WEB-INF for a
>> particular application even if the war file
>> supplies one?
>>
>> Rolf
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
>
ok, thank you Tim and David - I'll do so.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: what about a server specific web.xml tailoring?
Posted by David Smith <dn...@cornell.edu>.
I would say no. This is an issue for build management, not tomcat. May I
suggest you put together a short script that explodes the war, replaces
the web.xml, and then re-zips the webapp back to a war. The whole thing
could easily be done with a shell script or batch file - don't even
need ant.
--David
Rolf Schumacher wrote:
> Dear long time Tomcat operators,
>
> I get new versions of a war file very often.
> Due to authorization constrains I have to place
> some extra security-constraints clauses into it
> - every time I deploy a new version.
>
> Is there a way to tell Tomcat to get the web.xml
> from a different place than WEB-INF for a
> particular application even if the war file
> supplies one?
>
> Rolf
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: what about a server specific web.xml tailoring?
Posted by Tim Funk <fu...@joedog.org>.
No. But if I were you - I would write an Ant task which
1) unpacked the war
2) copied the original web.xml to a backup name (for reference)
3) injected the security constraint
4) repackage the war
Or you can create a Valve which does the additional constraints.
-Tim
Rolf Schumacher wrote:
> Dear long time Tomcat operators,
>
> I get new versions of a war file very often.
> Due to authorization constrains I have to place
> some extra security-constraints clauses into it
> - every time I deploy a new version.
>
> Is there a way to tell Tomcat to get the web.xml
> from a different place than WEB-INF for a
> particular application even if the war file
> supplies one?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org