You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Wendy Smoak (JIRA)" <ji...@apache.org> on 2006/11/20 05:30:57 UTC

[jira] Updated: (STR-2610) ActionServlet locks jars in web-inf/lib after reading config files

     [ http://issues.apache.org/struts/browse/STR-2610?page=all ]

Wendy Smoak updated STR-2610:
-----------------------------

    Comment: was deleted

> ActionServlet locks jars in web-inf/lib after reading config files
> ------------------------------------------------------------------
>
>                 Key: STR-2610
>                 URL: http://issues.apache.org/struts/browse/STR-2610
>             Project: Struts 1
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.3.0
>         Environment: Operating System: All
> Platform: Other
>            Reporter: Filippo Munafò
>         Assigned To: Struts Developers
>            Priority: Critical
>             Fix For: 1.3.0
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira