struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37041] New: - ActionServlet locks jars in web-inf/lib after reading config files
Date Wed, 12 Oct 2005 09:21:39 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=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


Mime
View raw message