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

Erroneous references to log4j classes appearing in online documentation

    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • Documentation
    • None

    Description

      On the following page http://logging.apache.org/log4j/2.x/manual/webapp.html, at the section entitled "Servelet 2.5 Web Applications", there are references to the following listener and filter classes -

      org.apache.logging.log4j.core.web.Log4jServletContextListener

      org.apache.logging.log4j.core.web.Log4jServletFilter

      When the web.xml settings provided in this particular section are used in conjunction with Apache Tomcat, Tomcat logs a relatively obscure error to the effect the relevant listener and filter could not be started.

      The problem has been traced to an incorrect classpath. The correct classes and associated classpaths ought to be -

      org.apache.logging.log4j.web.Log4jServletContextListener

      org.apache.logging.log4j.web.Log4jServletFilter

      "core" has been omitted from each. For the benefit of future log4j2 developers, it may be helpful to update the documentation to refer to the correct classes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rwbisson Roger Bisson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: