tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29182] - Jasper locks jar files when compiling JSPs through Ant
Date Fri, 03 Sep 2004 11:35:55 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29182>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29182

Jasper locks jar files when compiling JSPs through Ant





------- Additional Comments From petr.jiricka@netbeans.com  2004-09-03 11:35 -------
Remy, I don't understand what's ridiculous about this - this is a legitimate
bug. Let's be constructive, please.

> -1 for adding workarounds to address broken implementation in the JVM.

Doesn't WebappClassLoader already have workarounds to prevent locking jars and
to allow redeployment? There is code in Tomcat that bypasses URLConnection, so
why apply different measures in this case?

Also, I believe Tomcat should strive to work with taday's existing JDKs.

FYI, a bug was submitted against JDK, but it was not resolved:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5041014

> BTW, I never noticed the behavior you describe

Are you saying you are not able to reproduce this usign the test case I submitted?

One practical real-world situation when this may arise is when you run Ant
scripts that compile JSPs in IDEs. IDEs generally run Ant in their own VM; they
don't launch a separate one. So any jars that are locked by jspc will not be
closed after the Ant build completes. Next time you run ant clean (in your IDE),
you hit this bug. And here I am not only talking about NetBeans, Eclipse also
does it this way, I believe.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message