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.