geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-5536) application configuration resources located in lib/*.jar can not be accessed by myfaces in OSGi enviroment
Date Thu, 19 Aug 2010 02:21:16 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12900152#action_12900152
] 

Ivan commented on GERONIMO-5536:
--------------------------------

Commit the changes to trunk at rev.987000 , thanks, Hang Hong Fang !
Personally, first step, it is better to make myfaces could find those config files. Later,
we could do the scan only in the deployment process, which means no need to do it again while
starting up the web application.

> application configuration resources located in lib/*.jar can not be accessed by myfaces
in OSGi enviroment
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-5536
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5536
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: myfaces
>    Affects Versions: 3.0
>            Reporter: Han Hong Fang
>            Assignee: Han Hong Fang
>         Attachments: GERONIMO-5536.patch
>
>
> Myfaces uses classloader to get jar file resource. In OSGi environment, bundleclassloader
is used, and the conn (refer the code below) will never be JarURLConnection. This causes faces
configuration files under jar file can not be accessed by myfaces in Geronimo 3.0.
> for (Enumeration<URL> urls = loader.getResources(resource); urls.hasMoreElements();)
> {
>             URL url = urls.nextElement();
>             URLConnection conn = url.openConnection();
>             conn.setUseCaches(false);
>             conn.setDefaultUseCaches(false);
>             JarFile jar;
>             if (conn instanceof JarURLConnection)
> ....
> }

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


Mime
View raw message