Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4567

Weld does not find CDI Beans within AS7 modules

    XMLWordPrintable

Details

    Description

      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.
      After moving my.jar from WEB-INF/lib to a AS7 module(and adding a dependency in the war's MANIFEST.MF) 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 (or cannot) scan my.jar which is inside AS7 module. (instantiating BeanXY directly ("new BeanXY()") works - so the module is loaded correctly)

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            herb_jira Gernot P (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: