Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2110

Log4jServletContextListener skips initialization and thusly never calls stop()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Abandoned
    • 2.8, 2.8.1, 2.8.2, 2.9.0, 2.9.1
    • None
    • Web/Servlet
    • None

    Description

      Log4jServletContextListener is not working in Tomcat 8 or 8.5 as it's never initialized.

      The contextInitialized is never called and thus it never sets the servletContext.

      This is checked when a servletContext is destroyed and ignored every time.

      The outcome, is that our customer appenders are never stopped leading to resource leaks.

      Attachments

        Activity

          People

            rgoers Ralph Goers
            thomas.beauvais Thomas Beauvais
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: