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