

Place a context file named ROOT.xml in $CATALINA_BASE/conf/. Place your WAR file outside of $CATALINA_BASE/webapps (it must be outside Second method: in order to make any change to anyĪpplication, you will have to stop and restart Tomcat. Unless it finds their Context in the server.xml. You must do this because you have disabled all the TomcatĪuto-deploy mechanisms, and Tomcat will not deploy your applications anymore Turn offĪutoDeploy and deployOnStartup in your Host element in the server.xml file.Įxplicitly define all application Contexts in server.xml, specifying both the pathĪnd docBase attributes. Leave your war file in $CATALINA_BASE/webapps under its original name. Then rename your WAR file to ROOT.war, and finally start your Tomcat from the bin directory ( sh startup.sh). Then delete all the content of your Tomcat webapps folder ( rm -fr *). First shutdown your Tomcat from the its bin directory ( sh shutdown.sh).
