Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-655

Using a custom CDI extension breaks injection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 2016.8
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It seems that adding a custom CDI extension to a Wildfly Swarm application breaks injection.
      I have attached a very small example application which works as expected, i.e. a GET request to http://localhost:8080/test gives me an output like "com.solvians.test.TestBean@2c731369".
      As soon as I enable the extension (by removing the comment in the class com.solvians.test.TestExtension), the TestBean is no longer injected into TestEndpoint and the output is "null".
      As you can see, the extension does not have any functionality. (Of course, the real extension has, but even without any real code the problem occurs.)

        Attachments

          Activity

            People

            Assignee:
            antoinesabot-durand Antoine Sabot-Durand (Inactive)
            Reporter:
            chschroe Christian Schröder (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: