TomcatExpert

Deploying exploded WAR files

posted by SpringSource on April 27, 2010 05:34 AM

Files in the work and temp directories depend on timestamps to be overwritten.

If you deployed the web app using WAR file originally, then you need to either redeploy the entire WAR file or need to meet any of the conditions listed in the official Apache Tomcat documentation.

Your other two options are:

  1. Remove the exploded web app and redeploy the web app using the war file.
  2. Update the exploded web app and do a touch on the WEB-INF/web.xml of the application to redeploy.

If you are having trouble with files not updating in the work and temp directory it is possible you may have a conflict with timestamps. The work and temp directory are used for compiled jsp files, so if your compiled jsp files timestamp are newer than the timestamp of your new jsp files then Tomcat will only serve the old files. Therefore, you need to check and compare the timestamp of the newly deployed web app with the in the work or temp directories. If the files in either directory are newer, you’ll need to delete the old web app files in work directory or touch all the new web app files to update their timestamp.

For more than 10 years, SpringSource employees have been supporting Apache technologies, with unparalleled experience and commitment to the Apache Software Foundation. More than 400 of the Fortune 500 count on SpringSource to support their mission-critical business applications. Leaders of the Apache Software Foundation, including Board Members, work at SpringSource and dedicate a significant amount of time further developing the Apache Tomcat open source project. Over the last 2 years, 95% of the issues fixed in the Apache Tomcat project were fixed by SpringSource engineers. For more information on how SpringSource can help your enterprise, see the SpringSource website, or call 800/444-1935.

Comments

Post new comment

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.