TECHIES WORLD

For Techs.... Techniques.... Technologies....

BashLinux

How to deploy application war file to Tomcat ROOT

Tomcat ROOT folder normally contains the default pages. This article explains the steps to deploy application war file to Tomcat ROOT in webapps folder.

Step1: Login to the server via ssh as root.

Step2: Change the location to the "webapps" folder in Tomcat installation directory.

Step3: Remove the existing "ROOT" folder.

#rm -rf ROOT

Step4: Upload the application war file to "webapps" folder.

Step5: Rename the application war file to the name "ROOT.war".

Step6: Restart Tomcat service.

#systemctl restart tomcat

That's all…