]
Bartosz Baranowski reassigned WFLY-14143:
-----------------------------------------
Assignee: Bartosz Baranowski (was: Matěj Novotný)
Can not inject bean from module
-------------------------------
Key: WFLY-14143
URL:
https://issues.redhat.com/browse/WFLY-14143
Project: WildFly
Issue Type: Bug
Components: CDI / Weld, Class Loading
Affects Versions: 21.0.1.Final
Reporter: Mariusz Kulig
Assignee: Bartosz Baranowski
Priority: Major
Attachments: mymodule.zip, reproduce_sample.zip
Bean from module cannot be injected to bean in deployment. It works properly on
Wildfly 20.0.1.Final but does not work on Wildlfy 21.0.1.Final.
I registered module which contains @ApplicationScoped CDI bean. I tried do deploy WAR
archive that contains library that depends on this module. The library contains proper
entry in Dependencies section in MANIFEST.MF file.
I get exception:
{code:java}
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied
dependencies for type HelloService with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject com.example.mylib.MyLib.helloService
at com.example.mylib.MyLib.helloService(MyLib.java:0)
at
org.jboss.weld.core@3.1.5.Final//org.jboss.weld.bootstrap.Validator.validateInjectionPointForDeploymentProblems(Validator.java:378)
{code}