tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edd Grant <...@eddgrant.com>
Subject Re: How do I deploy a war file to a context path not matching the war file name
Date Fri, 01 Feb 2013 13:28:33 GMT
Thanks Chris - that works perfectly!

On 1 February 2013 11:06, chris derham <chris@derham.me.uk> wrote:
>> The documentation for the docBase (a.k.a context root) attribute
>> states that the docBase attribute should be used to point to the war
>> or exploded war file. My server's appBase is the default of 'webapps'
>> and my WAR and exploded WAR are under webapps so I have specified a
>> relative path of 'MYAPP' to point to the exploded war folder (i.e.
>> webapps/MYAPP).
>
> move the exploded war to a folder outside of webapps. Personally I
> create a folder called notWebapps.
>
>>
>> For clarity, here is the content of the context.xml file:
>>
>> <?xml version="1.0" encoding="utf-8"?>
>> <Context docBase="MYAPP">
>> </Context>
>>
>
> Than alter the docBase to be <Context docBase="../notWebapps/MYAPP">
>
> HTH
>
> Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>



-- 
Web: http://www.eddgrant.com
Email: edd@eddgrant.com
Mobile: +44 (0) 7861 394 543

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


Mime
View raw message