[ 
https://issues.apache.org/jira/browse/MYFACES-1982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637314#action_12637314
 ] 

Leonardo Uribe commented on MYFACES-1982:
-----------------------------------------

Thanks Matthias for the information. It helps a lot

One theory I have it this problem is related to FacesConfigEntityResolver on 
myfaces-impl (class DigesterFacesConfigUnmarshallerImpl uses it).

The method 

    public InputSource resolveEntity(String publicId,
                                     String systemId)

has a code like this:

        else if (systemId.startsWith("jar:"))
        {
            URL url = new URL(systemId);
            JarURLConnection conn = (JarURLConnection) url.openConnection();
            JarEntry jarEntry = conn.getJarEntry();
            if (jarEntry == null)
            {
                log.fatal("JAR entry '" + systemId + "' not found.");
            }
            //_jarFile.getInputStream(jarEntry);
            stream = conn.getJarFile().getInputStream(jarEntry);
        }

but as suggested on DIGESTER-29 this should looks like this:

        else if (systemId.startsWith("jar:"))
        {
            URL url = new URL(systemId);
            JarURLConnection conn = (JarURLConnection) url.openConnection();
+          conn.setUseCaches(false);
            JarEntry jarEntry = conn.getJarEntry();
            if (jarEntry == null)
            {
                log.fatal("JAR entry '" + systemId + "' not found.");
            }
            //_jarFile.getInputStream(jarEntry);
            stream = conn.getJarFile().getInputStream(jarEntry);
        }

I don't know how to test this so if anyone can test this theory, it could be a 
big help.

I'll check myfaces code to see what other theory can deduct.

> Too many open files on Weblogic 9.2
> -----------------------------------
>
>                 Key: MYFACES-1982
>                 URL: https://issues.apache.org/jira/browse/MYFACES-1982
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 1.2.3
>         Environment: Linux Red Hat AS4 (2.6.9-34.ELsmp), JRockit 1.5.0_14, 
> Weblogic 9.2 MP2
>            Reporter: Roland Schaer
>            Priority: Critical
>
> Due to the default value of the parameter CONFIG_REFRESH_PERIOD, each request 
> causes to reload the web.xml and potential faces config files defined in the 
> web.xml. These loaded files were not freed up and led to open file handles 
> (which are limited to 1024 by default) on the system. After a while the open 
> file handles prevents the system from creating new SocketConnections. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to