War package is missing slf4j-log4j jar binding

Issue #28 resolved
Anonymous created an issue

The log4j.jar is already packaged, but slf4j-log4j binding is missing.

Comments (4)

  1. Zemian Deng

    The war (1.2.1) will deploy with the following warning, but will still work.

    INFO: Deploying web application archive C:\apps\apache-tomcat-7.0.26\webapps\timemachine-web-1.2.1.war
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 

    However, we can't configure the logging for the war, unless we unpack it and add the missing jar into the WEB-INF/lib directory.

    Also, because we already packaged slf4j-api in the war file, we can't simple load slf4j-log4j into the TOMCAT_HOME/lib. It must be done in WEB-INF/lib for now.

  2. Log in to comment