You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/10/12 11:21:39 UTC
DO NOT REPLY [Bug 37041] New: -
ActionServlet locks jars in web-inf/lib after reading config files
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=37041>.
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=37041
Summary: ActionServlet locks jars in web-inf/lib after reading
config files
Product: Struts
Version: 1.3.0
Platform: Other
OS/Version: All
Status: NEW
Keywords: PatchAvailable
Severity: critical
Priority: P2
Component: Controller
AssignedTo: dev@struts.apache.org
ReportedBy: filippo.munafo@kion.it
Using Tomcat Manager we have fallen in a known problem:
http://jakarta.apache.org/tomcat/faq/windows.html#lock
http://issues.apache.org/bugzilla/show_bug.cgi?id=29526
http://www.mail-archive.com/ojb-dev@db.apache.org/msg00474.html
The solution is to use URLConnection instead of URL to read the inputStream and
set to false the UseCache boolean.
Here is the patch for method parseModuleConfigFile(Digester digester, URL url)
26a27
> import java.net.URLConnection;
741c742,745
< input = url.openStream();
---
> URLConnection conn = url.openConnection();
> conn.setUseCaches(false);
> conn.connect();
> input = conn.getInputStream();
Thanks for a quick submit,
Filippo
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org