Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 1217 invoked from network); 11 Feb 2010 17:46:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2010 17:46:57 -0000 Received: (qmail 9794 invoked by uid 500); 11 Feb 2010 17:46:57 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 9718 invoked by uid 500); 11 Feb 2010 17:46:56 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 9710 invoked by uid 99); 11 Feb 2010 17:46:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 17:46:56 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2010 17:46:55 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 96A3929A0014 for ; Thu, 11 Feb 2010 09:46:35 -0800 (PST) Message-ID: <1063670542.211141265910395615.JavaMail.jira@brutus.apache.org> Date: Thu, 11 Feb 2010 17:46:35 +0000 (UTC) From: "Jarek Gawor (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Created: (MYFACES-2550) AnnotationConfigurator and scanning of myfaces impl jar MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 AnnotationConfigurator and scanning of myfaces impl jar ------------------------------------------------------- Key: MYFACES-2550 URL: https://issues.apache.org/jira/browse/MYFACES-2550 Project: MyFaces Core Issue Type: Improvement Components: General Affects Versions: 2.0.0-beta-2 Reporter: Jarek Gawor The AnnotationConfigurator.configure() code attempts to obtain the myfaces impl jar (by looking up META-INF/standard-faces-config.xml resource) and scans it for certain annotations. This does not work in OSGi environment because of two issues: 1) the getMyfacesImplJarFile() uses context class loader to lookup the resource which most likely will return null, and 2) even if that method successfully looked up that resource, it won't be able to get a JarFile out it. That's because the url returned from resource lookup in OSGi environment can't be considered as a url to a jar file. However, now I'm wondering if the annotation scanning of myfaces impl jar is needed at all. None of the classes within the jar have any of the annotations that the code is looking for... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.