Java - How to change context root of a dynamic web project in eclipse
Posted
by
Yatendra Goel
on Stack Overflow
See other posts from Stack Overflow
or by Yatendra Goel
Published on 2010-03-13T06:07:46Z
Indexed on
2012/04/13
5:29 UTC
Read the original article
Hit count: 221
I have developed a dynamic web project in eclipse. Now I can access it through my browser using the following url:
http://localhost:8080/MyDynamicWebApp
Now I want to change the access url to
http://localhost:8080/app
I changed the context root from the project properties | Web Project Settings | Context Root
But it is not working. The web app still has the access url as earlier. I have re-deployed the application on tomcat, re-started the tomcat and have done everything that should be done but the access url is the same as earlier.
I found that there were no server.xml
file attached with the WAR
file. The how the tomcat is determining that the context root of my web app is /MyDynamicWebApp
and is allowing me to access the application through that url
© Stack Overflow or respective owner