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

    • Bug
    • Resolution: Done
    • Major
    • 2.2.0.Final
    • 2.1.3.Final
    • None
    • 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 flaviarnn via Zulip and I'll send a PR shortly.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: