Sorry, I forgot to mention.  This is for Tomcat 5.5.23.

  _____  

From: Daniel Blumenthal [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 15, 2008 1:40 PM
To: 'Tomcat Users List'
Subject: reloadable problem with filters


I'm having an odd problem.  When filters are enabled in my application
(e.g., to add an "Expires" header to certain files), I have to restart the
tomcat server every time I recompile.  When the filters are disabled, I
don't have to restart the server (i.e., "reloadable" works).
 
tomcat/conf/web.xml:
 
<Context reloadable="true">
    <WatchedResource>WEB-INF/web.xml</WatchedResource>
</Context>
 
>From WEB-INF/web.xml:
 
...
<filter>
    <filter-name>ExpiresFilter</filter-name>
    <filter-class>app.ExpiresFilter</filter-class>
</filter>
<filter-mapping>

    <filter-name>ExpiresFilter</filter-name>
    <url-pattern>*.js</url-pattern>
</filter-mapping>
...
 
Any thoughts on why this would be happening, or workarounds?

Reply via email to