[
https://issues.jboss.org/browse/WFLY-3640?page=com.atlassian.jira.plugin....
]
Stuart Douglas updated WFLY-3640:
---------------------------------
Fix Version/s: Awaiting Volunteers
Assignee: (was: Stuart Douglas)
This could be implemented by hacking up some injection support in
org.jboss.as.ee.component.ReflectiveClassIntrospector, however given that this only
affects components added manually when CDI has been disabled this is not a priority at the
moment, and is unlikely to be fixed in the WF9 time frame.
EJB injection does not work in components added via Servlet Context
-------------------------------------------------------------------
Key: WFLY-3640
URL:
https://issues.jboss.org/browse/WFLY-3640
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Web (Undertow)
Affects Versions: 8.1.0.Final
Reporter: James Livingston
Fix For: Awaiting Volunteers
Attachments: reproducer.zip
You can add web components at runtime ServletContext.addListener() and similar methods.
@EJB injection inside those components does not work and the field remains null. I have
not yet tested whether other forms of injection work or not.
I'm attaching a reproducer which adds a listener via a ServletContainerInitializer.
Deploying the WAR and going to the root of the web app context
(/scilistener-0.0.1-SNAPSHOT) will cause a NullPointerException
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)