Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-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
    • None
    • Affects at least SAP Application Server J2EE Engine/6.40 PatchLevel 104329.313 (A servlet 2.3 container)
    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? 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: