5 Replies Latest reply on Apr 22, 2015 4:14 AM by Martin Kouba

    Weld cannot find producer method in library jar

    abhi0123 Newbie

      Using Wildfly 8.2.0.Final, which I believe uses Weld 2.2, I've reproduced this issue with 2 simple classes in a Maven multimodule project. One produces a javax.ws.rs.client.Client, another has an injection point for the same. Arquillian deployment fails with WELD-001408: unsatisfied dependencies.

      The producer is in a library jar that gets included in the WEB-INF/lib for the consumer. Producer has a beans.xml in the META-INF with discovery-mode=annotation and the consumer has one in WEB-INF with discovery-mode=all.

      This is somewhat related to Re: WELD-001408: Unsatisfied dependencies for type List with qualifiers which was never solved. mkouba


      Steps to reproduce:

      Download the attached project and run mvn clean install from the root directory.


      This is a critical issue. Created JIRA [WELD-1921] Weld cannot find producer method in library jar - JBoss Issue Tracker