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

CDI bean with StereoType is not injectable in implicit bean archive

    Details

      Description

      CDI 1.2 defines bean defining annotations and with beans with these annotations should be injectable. However a bean with StereoType, one of bean defining annotations, is not injectable within implicit bean archive on WildFly.

      Attached a simple war project to reproduce this problem. This works on GlassFish 4 but doesn't work on WildFly 8.1.0 nor WildFly 9 master at this time. Making this an explicit bean archive by adding empty beans.xml (or set bean-discovery-mode=all) fixes the problem, the container recognizes the CDI bean correctly.

        Gliffy Diagrams

          Attachments

          1. logs.zip
            5 kB
          2. stereotype.zip
            13 kB

            Activity

              People

              • Assignee:
                jharting Jozef Hartinger
                Reporter:
                tkimura Takayoshi Kimura
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: