You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vivek Patil <vi...@springct.com> on 2017/11/27 08:05:36 UTC
Need Important Help in Context path
Hello All,
I am using Maven to build our application.
So the war name will be MyTest-1.00-SNAPSHOT1.0 .If I deploy the same in
Tomcat I have use the URL as
//localhost:8080/MyTest-1.00-SNAPSHOT1.0
but I need to set the context path MyTest eventhough deployed WAR name
as MyTest-1.00-SNAPSHOT1.0. I need the URL will be
//localhost:8080/MyTest
This link should always same if I changed the war name from
MyTest-*1*.00-SNAPSHOT1.0**to MyTest-*2*.00-SNAPSHOT1.0.
**
--
Thanks & Regrads
Vivek Patil
Sr IT Engineer.
Spring Computing Technologies Pvt. Ltd.
Contact- +91-95792 16049.
Re: Need Important Help in Context path
Posted by cyron <as...@gmail.com>.
just create MyTest.xml with contents like below, and drop it under
TomcatHome/conf/Catalina/localhost
--
<Context docBase="/pathToMavenTarget/" />
--
hope it can help u
2017-11-27 17:05 GMT+09:00 Vivek Patil <vi...@springct.com>:
> Hello All,
>
> I am using Maven to build our application.
> So the war name will be MyTest-1.00-SNAPSHOT1.0 .If I deploy the same in
> Tomcat I have use the URL as
> //localhost:8080/MyTest-1.00-SNAPSHOT1.0
>
> but I need to set the context path MyTest eventhough deployed WAR name as
> MyTest-1.00-SNAPSHOT1.0. I need the URL will be
> //localhost:8080/MyTest
>
> This link should always same if I changed the war name from
> MyTest-*1*.00-SNAPSHOT1.0**to MyTest-*2*.00-SNAPSHOT1.0.
> **
>
> --
> Thanks & Regrads
> Vivek Patil
> Sr IT Engineer.
> Spring Computing Technologies Pvt. Ltd.
> Contact- +91-95792 16049.
>
>
Re: Need Important Help in Context path
Posted by Sascha Monteiro <sa...@gmail.com>.
I just rename the file to MyTest.war
On Mon, Nov 27, 2017 at 7:05 PM, Vivek Patil <vi...@springct.com>
wrote:
> Hello All,
>
> I am using Maven to build our application.
> So the war name will be MyTest-1.00-SNAPSHOT1.0 .If I deploy the same in
> Tomcat I have use the URL as
> //localhost:8080/MyTest-1.00-SNAPSHOT1.0
>
> but I need to set the context path MyTest eventhough deployed WAR name as
> MyTest-1.00-SNAPSHOT1.0. I need the URL will be
> //localhost:8080/MyTest
>
> This link should always same if I changed the war name from
> MyTest-*1*.00-SNAPSHOT1.0**to MyTest-*2*.00-SNAPSHOT1.0.
> **
>
> --
> Thanks & Regrads
> Vivek Patil
> Sr IT Engineer.
> Spring Computing Technologies Pvt. Ltd.
> Contact- +91-95792 16049.
>
>