Details
Description
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...
Attachments
Attachments
Issue Links
- is depended upon by
-
GERONIMO-4996 myfaces 2 osgi integration
- Closed
- is part of
-
MYFACES-2290 Add OSGi bundle information and bundle classloader / activator
- Closed