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 <vivek.pa...@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.
>
>

Reply via email to