[ https://issues.apache.org/jira/browse/GERONIMO-5536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025042#comment-13025042 ] Han Hong Fang commented on GERONIMO-5536: ----------------------------------------- MyFaces has already provided one SPI FacesConfigResourceProvider interface, Geronimo can use this SPI to provide some URL to MyFaces. Implementation is already in trunk, and the workaround was reverted. So I close this JIRA. > 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 > Fix For: 3.0 > > 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 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. For more information on JIRA, see: http://www.atlassian.com/software/jira