----- Original Message ----- From: "Peter Desjardins" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Thursday, August 14, 2008 6:58 AM
Subject: Hot redeploying a WAR - HTML is not refreshed


Hi.  I have a web application that consists of an online help system.
It serves HTML content using the Eclipse user assistance system.  The
usage I need to support is that the help system WAR is running in
Tomcat, we repackage a new version of the WAR with updated content
(only new HTML pages, no new application functionality), and then hot
redeploy the new WAR file.  The hope is that users will see the new
HTML content with minimal interruption of service.

I am able to hot redeploy the new WAR files by overwriting the
versions in the webapps directory.  In the server log I can verify
that Tomcat undeploys the old version and then deploys the new
version.  However, the HTML files that are being served are not
updated.  Tomcat serves the HTML pages from the previous WAR file.

If I stop the server, replace the WAR files, delete the work
directory, and restart the server, the HTML pages are refreshed.

Is there a way to clear all the old content from the cache during a
hot redeploy?  Or is there any other way to serve the new HTML content
without stopping the server?

I am using Apache Tomcat Version 6.0.18, jdk1.5.0_14, and Windows XP.

Thanks for your help.

Peter Desjardins

Peter, it doesnt make sense to me... if the html file is changed its changed. Try edit an HTML file while TC is running, then refresh the browser... it will show you the new one... hopefully

I dont know this eclipse framework you using, so maybe I'm not getting it...

But I think... either you have some smart software attached that is doing the caching... ie some kind of "no so smart filter"...
Or its just the browser caching...

IE tends to forget easily, but Opera has a memory like an elephant ;)

If you change the html file and refresh the browser... I think you have to see the change...

To stop HTML pages caching in a browser one uses various meta tags in the html page... then the browser gets it every time.
Google for No Cache...

I have 6.0.18 running as well... it doesnt exhibit that xstic...
If its a special client and its using some kind of RSS feed maybe there is a setting there...

Change a HTML file in your web app... refresh the browser... if its not changing then there is an issue... Or maybe its something silly like the webapp is up to mischief... if it does that... open that webapp and check that the file you think are changed are actually changed inside... I think its a silly thing somewhere ;)

There may be some new caching in TC that I'm not aware of... some setting, but my TC's are not doing that ;)

Have fun...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------






---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to