Women in Technology

Hear us Roar

  Deploying Web Applications to Tomcat
Subject:   Servlet Caching in Tomcat 3.2.3
Date:   2001-12-03 04:48:58
From:   jolmstead2k
Much has been written about servlet caching in Tomcat, but I don't see a solution out there. I have tried the following code :

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");
But I believe this code effects browser cache and not the cache of the servlet engine itself.

I have also have added reloadable="true" to the sevlet context of the server.xml file. Am I missing something, or am I just stuck with having to restart Tomcat every time I modify a servlet ?

Thank You;

John Olmstead
(859) 283 2520 ex 221

Main Topics Oldest First

Showing messages 1 through 2 of 2.

  • Servlet Caching in Tomcat 3.2.3
    2003-10-29 16:13:37  anonymous2 [View]

    This problem caused me so much time. What I found is Tomcat looks into "classes" before it looks into "lib" dir. The solution is to clean out the "classes" directory to force Tomcat to read from lib only.


  • Servlet Caching in Tomcat 3.2.3
    2002-10-15 21:15:01  mta [View]

    I have expirence a even more strange problem,
    even restarting the Tomcat is not reloading the
    jsp, we even did a reboot and the old jsp is still