Hey folks,
I've been working on validating injection within my web application that works fine in Tomcat 10.x and Jetty 12.
This application has been re-processed in order to wrap each Servlet, Filter, and Listener
in order to expose features used by our project. The wrapper then takes responsibility for instantiating and delegating calls to the wrapped object. The wrapper relies on calling ServletContext.create{Servlet,Filter,Listener} to instantiate and inject the actual object (the javadocs seem to cover this use-case)
In this case, the Servlet is packaged in a JAR and included in WEB-INF/lib and has a beans.xml in its META-INF directory. I've also included a beans.xml in WEB-INF based on some threads I've read, but this hasn't made any difference; the object returned from the ServletContext call isn't injected.
I do see weld-related messages in the log:
[org.jboss.weld.deployer] (MSC service thread 1-7) WFLYWELD0003: Processing weld deployment web.war
[org.jboss.weld.Version] (MSC service thread 1-3) WELD-000900: 5.1.0 (Final)
Nothing else really stands out (no errors to speak of)
I'm hoping someone can confirm whether I'm hitting a bug in Wildfly or have I missed some bit of configuration somewhere?
Versions: