commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig McClanahan (JIRA)" <>
Subject [jira] Commented: (DIGESTER-29) [digester] Loading of resources causes webapp to fail redeploy under Tomcat 5.5.x
Date Tue, 14 Nov 2006 00:10:38 GMT
    [ ] 
Craig McClanahan commented on DIGESTER-29:

Besides 1.5 (the documented "Affected Version"), this issue is also present in version 1.6
and 1.7.  It bit me when I was using the Digester.register() method to register copies of
DTDs internal to the JAR file.  This would cause an I/O stream or something to remain open
on the DTD, which (in turn) would cause the jar file to remain locked after a webapp undeploy
on Windows.

Happily, the patched version works fine for this scenario (tested with the 20061111 nightly
build), so I guess it's time to get back in the digester game and help get a 1.8 release out
the door :-).

> [digester] Loading of resources causes webapp to fail redeploy under Tomcat 5.5.x
> ---------------------------------------------------------------------------------
>                 Key: DIGESTER-29
>                 URL:
>             Project: Commons Digester
>          Issue Type: Bug
>    Affects Versions: 1.5 Final
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Rich Feit
>         Attachments: bug37034-fix.txt,
> This was originally filed against Beehive as
> , but I've narrowed it down to
> either a Digester issue or a Tomcat issue.  Tomcat seems to suggest that this is
> an issue related to getting resources out of a JAR:
>     -
>     -
> Specifically, Tomcat turned off the behavior that prevents locking of JARs under
> Windows.  They did this to improve startup time.  I don't necessarily agree with
> this choice as a default, but if you believe their bug comments and FAQ, this
> actually just exposes Windows-specific bugs in the way resources are read out of
> JARs.
> To reproduce this:
>     - Run 'ant build war' in the attached directory.
>     - Copy strutsRedeploy.war into $CATALINA_HOME/webapps.
>     - Verify that there is a fully-extracted webapp under
> $CATALINA_HOME/webapps/strutsRedeploy.
>     - Copy strutsRedeploy.war (again) into $CATALINA_HOME/webapps.
> Now look in $CATALINA_HOME/webapps/strutsRedeploy -- it failed to redeploy, and
> the only file left in there is WEB-INF/lib/struts.jar.
> I'm attaching a Digester patch that fixes the issue.
> Note: the fix for this issue belongs in one of three places:
>     - Tomcat (which has rejected working around it since it impacts startup time)
>     - Digester
>     - XML support in the JDK
> Hopefully you'll choose Digester.  :)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message