I developed a dynamic web project in Eclipse.
I can access the app through my browser using the following URL:
http://localhost:8080/MyDynamicWebApp
I want to change the access URL to:
http://localhost:8080/app
To do so, I changed the context root from the project “Properties | Web Project Settings | Context Root”.
However, the web app still has the same access URL. I have re-deployed the application on Tomcat and re-started the Tomcat, but the access URL is the same as earlier.
I found that there was no server.xml
file attached with the WAR
file. Without the server.xml
file attached, how is the Tomcat determining that the context root of my web app is /MyDynamicWebApp
and allowing me to access the application through this context root URL?