[weld-issues] [JBoss JIRA] Commented: (WELD-233) A sub-set of events are reported to Extension classes defined in jar files that are in WEB-INF/lib

Santiago Pericas-Geertsen (JIRA) jira-events at lists.jboss.org
Thu Oct 29 13:26:05 EDT 2009


    [ https://jira.jboss.org/jira/browse/WELD-233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12492159#action_12492159 ] 

Santiago Pericas-Geertsen commented on WELD-233:
------------------------------------------------

Let me provide some more context. There are three extension classes each one with 7 observer methods. The first class is com.sun.jersey...JCDIComponentExtension and is part of the Jersey OSGi module. The second is foo.TestExtensionBean and is part of the webapp.war deployed (WEB-INF/classes), and the third is com.sun.jcditest.extinjar.TestExtensionBean and is part of a library bundled in webapp.war (WEB-INF/lib/extinjar*.jar). 

Weld deploys all the extension classes and creates 21 observers for all the methods. That part seems fine. However, when ProcessProducer(PP), ProcessInjectionTarget(PIT) or ProcessManagedBean(PMB) events are fired, they are only delivered to foo.TestExtensionBean only. Other events are delivered to all three extension classes.

As far as I can tell, TypeSafeResolver is failing to match PP, PIT and PMB with the observers created for JCDIComponentExtension and com.sun.jcditest.extinjar.TestExtensionBean. The fact that it works for one bean and not the other too is quite intriguing, and may suggest another class loading problem (e.g. types failing to match when loaded by different CLs).

I'd be interesting to see if any of this is reproducible on JBoss.

> A sub-set of events are reported to Extension classes defined in jar files that are in WEB-INF/lib
> --------------------------------------------------------------------------------------------------
>
>                 Key: WELD-233
>                 URL: https://jira.jboss.org/jira/browse/WELD-233
>             Project: Weld
>          Issue Type: Bug
>    Affects Versions: 1.0.0.CR1
>         Environment: GlassFish v3 and Weld 1.0.0-CR1-SP1
>            Reporter: Paul Sandoz
>            Priority: Blocker
>             Fix For: 1.0.0.CR2
>
>         Attachments: jcditest.zip
>
>
> Only the following events are reported: BEFORE BEAN DISCOVERY, PROCESS ANNOTATED TYPE, AFTER BEAN DISCOVERY and AFTER DEPLOYMENT VALIDATION

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list