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