You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jarek Gawor (JIRA)" <de...@myfaces.apache.org> on 2010/02/11 18:46:35 UTC

[jira] Created: (MYFACES-2550) AnnotationConfigurator and scanning of myfaces impl jar

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.