Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-3632

Log4j appears to be running in a Servlet environment, but there's no log4j-web module available

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.2.0
    • None
    • server
    • None
    • Windows 10

    Description

      I noticed the following issue when running the Tika server jar and trying to troubleshoot log4j2 (with -Dlog4j2.debug set in the JVM): 

      INFO StatusLogger Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.

      Is this something that needs to be added when the server jar is built?  It's not obviously impacting me right now but since it's a bit noisy (prints out eight times) I attempted to quash the noise by downloading the log4j-web-2.17.0.jar and add it to my classpath. Unfortunately that did nothing.

      Attachments

        Activity

          People

            grossws Konstantin Gribov
            jmbox80 Josh Burchard
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: