Thursday, 22 August 2013

How to change the context path of a Spring MVC application deployed in TOMCAT 6.0

How to change the context path of a Spring MVC application deployed in
TOMCAT 6.0

I have a application by the name (say ) SR.DEV.1.001.war . The builds will
change as might have thought already to SR.DEV.1.001 ..004 and so on .
However, the jsp's inside have links like DS/admin or DS/user .
I have checked online for a few resources so as to help me , like here ,
here and here
After trying them out, Im still having the same issue . I tried in
context.xml in META-INF
01) <?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/SR.DEV.1.001.war" path=""
reloadable="true" />
02) <?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/SR.DEV.1.001.war" path="/"
reloadable="true" />
03) <?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/" path="/DS" reloadable="true" />
04) <?xml version="1.0" encoding="UTF-8"?>
<Context docBase="" path="/DS" reloadable="true" />
Please help me fix the issue , as without which , its difficult for me to
manage the versions of the war , without affecting the context .
Thanks in advance .

No comments:

Post a Comment