Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 94455 invoked from network); 19 Aug 2010 02:21:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 02:21:38 -0000 Received: (qmail 83854 invoked by uid 500); 19 Aug 2010 02:21:38 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 83748 invoked by uid 500); 19 Aug 2010 02:21:37 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 83741 invoked by uid 99); 19 Aug 2010 02:21:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 02:21:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 02:21:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7J2LG0h026201 for ; Thu, 19 Aug 2010 02:21:16 GMT Message-ID: <14256117.437641282184476327.JavaMail.jira@thor> Date: Wed, 18 Aug 2010 22:21:16 -0400 (EDT) From: "Ivan (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-5536) application configuration resources located in lib/*.jar can not be accessed by myfaces in OSGi enviroment In-Reply-To: <9656240.388171282025355716.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 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.