glassfish
  1. glassfish
  2. GLASSFISH-11392

CDI component scanning does not include dependent bean archives when running EJBContainer.createEJBContainer()

    Details

    • Issuezilla Id:
      11,392

      Description

      When starting embeddable glassfish within a unit test (JUnit 4.7), weld does only register managed beans
      (CDI-beans) discovered in the same bean archive as the EJB:s. If an EJB depend on (via @Inject or @Inject +
      @SomeQualifier) a bean in another bean archive, start-up of the container fails with
      "org.glassfish.deployment.common.DeploymentException: Injection point has unstatisfied dependencies.
      Injection point:...". It does however successfully load the classes into the JVM: Removing the @Inject-
      annotation makes the container launch, but - of cause - some tests to fail.
      I raised it as a blocker, since I'm not aware of a work-around.

        Activity

        Hide
        johaneltes added a comment -

        A maven project that reproduces the problem has been added to the corresponding jboss weld jira
        (https://jira.jboss.org/jira/browse/WELD-360)

        Show
        johaneltes added a comment - A maven project that reproduces the problem has been added to the corresponding jboss weld jira ( https://jira.jboss.org/jira/browse/WELD-360 )
        Hide
        johaneltes added a comment -

        Created an attachment (id=4210)
        Testcase that reproduces the problem

        Show
        johaneltes added a comment - Created an attachment (id=4210) Testcase that reproduces the problem
        Hide
        marina vatkina added a comment -

        Currently libraries in the classpath are not supported

            • This issue has been marked as a duplicate of 12151 ***
        Show
        marina vatkina added a comment - Currently libraries in the classpath are not supported This issue has been marked as a duplicate of 12151 ***

          People

          • Assignee:
            ksak
            Reporter:
            johaneltes
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: