JBoss Community

as7 modules and cdi problem

created by herb in JBoss AS 7 Development - View the full discussion

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

Start a new discussion in JBoss AS 7 Development at Community