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/ ...
Get Apache Tomcat 7 Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.