Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1182

Injection into bean in portable extension not working.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • None
    • 1.1.8.Final
    • Infrastructure
    • None
    • Hide

      Place the portable extension in the system classpath (in glassfish/lib).
      Deploy a war.

      Show
      Place the portable extension in the system classpath (in glassfish/lib). Deploy a war.

      I have a portable extension with the following 2 beans defined:

      public class BeanA() {
      @Inject
      private BeanB beanB
      ...
      }

      public class BeanB() {}

      Both beans are created by the portable extension and added (via addBean)
      in the afterBeanDiscovery method. When I deploy a war I get
      "WELD-001408 Unsatisfied dependencies" for the private field beanB. The
      portable extension is on the system classpath and not part of the war.

        1. por_ext_lib.jar
          10 kB
        2. port_ext_lib_jar.jar
          7 kB
        3. port_ext_lib.war
          3 kB

              rhn-engineering-jharting Jozef Hartinger
              jjsnyder Joseph Snyder (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: