tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat war context path
Date Mon, 15 Aug 2011 19:55:06 GMT
On 15/08/2011 20:45, Jesse Farinacci wrote:
> Greetings,
>
> On Mon, Aug 15, 2011 at 3:39 PM, Mohit Anchlia<mohitanchlia@gmail.com>  wrote:
>>>>> Currently when I deploy abc-SNAPSHOT-01.war I access is something like
>>>>> http://localhost:8080/abc-SNAPSHOT-01.war
>>>>>
>>>>> How can I change the context root such that I can access it as
>>>>> http://localhost:8080/abc?
>>>>>
>>>>> Problem is that abc-SNAPSHOT-01.war name could change with the build
>>>>> version change.
>
> You could also bundle a META-INF/context.xml file which looks something akin to:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Context path="/" />

No you can't. That config is invalid.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message