Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-7346

Provide an initializing servlet for servlet 2.3 web containers that call servlet init before initializing listeners

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Timed out
    • None
    • Affects at least SAP Application Server J2EE Engine/6.40 PatchLevel 104329.313 (A servlet 2.3 container)
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? See the corresponding suggestion.

      Some servlet 2.3 application servers call Servlet.init() before publishing a ContextInitialized event for servlet listeners. This generates a large amount of logging from servlets expecting a Spring context to be available at a well known servlet context attribute as this attribute is set by a listener upon receiving the ContextInitialized event.

      It would appear that Confluence will still recover from this (at least the DWR servlet does) but it would be nice to have proper support for this lifecycle ordering. We probably need to use an initializing servlet like Spring's ContextLoaderServlet when operatiing in these web containers.

      The servlet 2.4 specification requires listeners to be initialized first so this problem will not affect containers implementing this spec.

      Attachments

        Issue Links

          Activity

            People

              barconati BillA
              christopher.owen@atlassian.com Christopher Owen [Atlassian]
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: