> Hi, > > I use the Tomcat 4.0 standalone webserver for an Intranet application. I > currently don't need that much performance, and thus don't need the Apache > webserver. > > I generate log files (with log4J) in my application context, making them > available for the administrator, by using the browser. At the beginning it > worked fine. I could see the log files grow, just by making a refresh of the > page. But after a certain time (some hours) the file in the directory list > of Tomcat just freezed (date, size), and Tomcat doesn't serve the latest > file anymore. > > When I check the file over network, it's fine. > > I installed Tomcat in it's original configuration. No special settings. My > context: > > <Context path="/notes" > docBase="C:/Danny/DannyProj/Hitec/Hitec/Hkms/webapps/hkms" debug="0" > reloadable="true"> > <Logger className="org.apache.catalina.logger.FileLogger" > prefix="localhost_notes_log." suffix=".txt" timestamp="true"/> > </Context>
I've just added two fixes which should help you. The problem is that when you keep writing to a file, the last modified date doesn't change (and I use that to revalidate the cache contents). Another workaround for that first problem is to disable caching for the context (since the files change all the time, it's not that helpful anyway), by adding cachingAllowed="false" to your Context element. Also, I've made some cache related fixes to directory browse page generation (which should have a last modifed header, or check any of the if headers). The fixes will be in the 10/06/2001 nightly. Remy
