herb [
https://community.jboss.org/people/herb] created the discussion
"as7 modules and cdi problem"
To view the discussion, visit:
https://community.jboss.org/message/720584#720584
--------------------------------------------------------------
I've a my.jar which contains cdi beans and cdi producer methods and a
META-INF/beans.xml file.
Putting this jar to WEB-INF/lib in my war, the web app can use the cdi producer methods of
my.jar.
Then I moved my.jar from WEB-INF/lib to a AS7 module and I added a dependency in the
war's MANIFEST.MF:
Dependencies: com.mycompany
But now as7 reports
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for
type [BeanXY] with qualifiers [@Default] at injection point [[field] @Inject
It seams that weld does not scan my.jar which is loaded as as7 module. (instantiating
BeanXY directly ("new BeanXY()") works - so the module is loaded correctly)
Is there a limitiation that prevents the use of cdi in conjunction with as7 module?
Or is there an option to set?
Or ...?
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/720584#720584]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]