Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14092

WELD library contained managedBean class is not visible for injection in top level classes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • CDI / Weld
    • None
    • Undefined
    • ---
    • ---

    Description

      Lib folder contain jar with super class with annotation and managed bean class definition. Top level contain derived class.
      Unless managed bean class is defined at top level, deployment goes postal, ie:
      acme_lib.Servlet2Test Time elapsed: 6.014 s <<< ERROR!
      org.jboss.arquillian.container.spi.client.container.DeploymentException:
      Cannot deploy acme-test.war: {"WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"acme-test.war\".undertow-deployment" => "java.lang.RuntimeException: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type InjectMePlease with qualifiers @Default
      at injection point [BackedAnnotatedField] @Inject private acme_lib.DynamicServlet.managedBean
      at acme_lib.DynamicServlet.managedBean(DynamicServlet.java:0)

      Attached two tests. Comment/uncomment inclusion of managed bean class for different result.

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            rhn-cservice-bbaranow Bartosz Baranowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: