How to clear cache on Apache Tomcat 5.x
2 years ago
Originally Published: 2006-02-14
Article Number
000046243
Applies To
Apache Tomcat 5.x
Issue
How to clear cache on Apache Tomcat 5.x
Customizations to RSA Security-provided .JSP pages are not taken into effect on Apache Tomcat 5.5
Cause
Apache Tomcat has built-in caching features that cause custom modifications to .JSP page to not be displayed to users. This cache is written to disk, and is not updated after restarting Apache Tomcat.
Resolution
To clear cache on Apache Tomcat, follow these steps:

1. Shut down Tomcat

2. Locate the Tomcat installation directory, e.g. C:\Program Files\Apache Software Foundation\Tomcat 5.5\

3. The cached applications are stored within [Tomcat Installation Directory]\work\Catalina\localhost\ directory - open this folder

4. You will see your customized web application within this directory, e.g. myApplication.war [Tomcat Installation Directory]\work\Catalina\localhost\webapps_myApplication

6. Delete the cached application folder, e.g. \webapps_myApplication

7. Restart Tomcat for changes to take effect - a new \webapps_myApplication folder will be created in the localhost directory with your new changes

8. Access your application from a web browser and you should see your new customized .JSP web pages