Hi,

I'm experiencing troubles with updating CSS/JS resources in
META-INF/resources during development.
My application is a multi module Maven project. Some of the 'jar' modules
(i.e. the ones that are packed in WEB-INF/lib/**) have META-INF/resources
with some CSS/JS files inside.

Deploying the project in Tomcat 7.0.37 in the IDE (Intellij IDEA) as
"exploded-war" allows me to edit my .java files and the resources which end
in the context root (in Maven terminology - src/main/webapp) then do
"update classes and resources" in the IDE and I can see my changes in the
browser.

Unfortunately this doesn't work for META-INF/resources (Servlet 3.0)
because it seems Tomcat very aggressively caches these resources.
I've stepped with the debugger thru various **DirContext implementations
and I see that the lastModificationTime is cached in JNDI Attributes and
the file content itself
in org.apache.naming.resources.Resource#binaryContent.

Am I correct to assume that there is no way to archive the short
development cycle with META-INF/resources ?

Thanks
Martin

Reply via email to