Common issues in deployment, configuration, and their troubleshooting
There are multiple issues which may arise after the deployment and configuration on Tomcat. Let's discuss the different issues:
Scenario 1:
Issue: Users complain that after the deployment, they can still view the old code.
Troubleshooting steps:
Check if the latest file is present on the doc base.
Check the
catalina.out
in thelogs
directory of Tomcat 7 and whether the WAR filename is deployed or not.If both are checked and the issue still persists, then stop the Tomcat service and clear the content of the
temp
directory under thework/Catalina/localhost
using the following command:
cd /opt/apache-tomcat-7.0.12/temp/ rm -rf ../temp/*
cd /opt/apache-tomcat-7.0.12/work/Catalina/localhost/ rm -rf ../localhost/*
Restart the Tomcat service and ask the user to test the application.
Scenario 2:
Issue: Users complaining that they can view the current deployed code on one node and the other node still displays the previous version...