Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1772

Delay listener initialization so that it happens after execution of servlet container initializers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.1.3.Final
    • Fix Version/s: 2.2.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      Listeners are currently initialized eagerly and even before any servlet container initializers were created/executed. This prevents Weld integration and subsequently makes it impossible to perform injection into listeners because Weld attempts to register EnhancedListener (implementing ServletContainerInitializer) in order to bootstrap and only after that it is able to serve Undertow bean instances of listeners.

       
      This has been hidden bug for a long time as Weld test verifying this was using very old Undertow version where this worked.

      I've gone over the details with flavia.rainone via Zulip and I'll send a PR shortly.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              manovotn Matěj Novotný
              Reporter:
              manovotn Matěj Novotný
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: