DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10027>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10027 Locked file struts.jar after Tomcat manager/stop and manager/remove [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2003-06-13 18:08 ------- A similar bug was fixed in Log4J. While it's arguable whether it's a struts bug, tomcat bug, or a windows bug, I thought I'd post the details and reopen the bug just to see if anyone thinks it should be addressed in struts. The bug (from what I understand) is that when dtd's are loaded from the jar (while running on windows), the jar is locked b/c the input stream for the dtd has not be properly closed. In log4j, this is fixed by using a custom EntityResolver to load the dtd. (the resolver makes a copy of the dtd input stream in memory and return the copied stream after closing the real input stream) references to this can be found in the log4j code, but this url from the barracuda project has a pretty good summary: http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/toolsT ech/Barracuda/WEB-INF/lib/log4j-1.2.7a.jar?rev=1.1&content-type=text/x-cvsweb- markup the files of interest in log4j are: org/apache/log4j/xml/Log4jEntityResolver.java org/apache/log4j/xml/DOMConfigurator.java i think this would be straightforward enough for struts to fix, but i understand that this would a workaround by struts to resolves some deeper bug (windows?) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]