J2EE Spring websphere liberty 8.5 log4j config no appenders
<p>First off, I've come across lots of similar issues but I haven't been able to figure it out. Perhaps I'm missing something simple. </p>

<p>I have a war with log4j that runs fine on tomcat (no warning message), but on websphere liberty 8.5 I get:</p>

<pre><code>[err] log4j:WARN No appenders could be found for logger (org.jboss.logging).
[err] log4j:WARN Please initialize the log4j system properly.
[err] log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
</code></pre>

<p>Has anyone come across this? In my web.xml I have</p>

<pre><code>&lt;!-- logging config and listener --&gt;
&lt;context-param&gt;
    &lt;param-name&gt;log4jConfigLocation&lt;/param-name&gt;
    &lt;param-value&gt;/WEB-INF/log4j-config.xml&lt;/param-value&gt;
&lt;/context-param&gt;

&lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.util.Log4jConfigListener&lt;/listener-class&gt;
&lt;/listener&gt;
&lt;listener&gt;
    &lt;listener-class&gt;org.springframework.web.context.request.RequestContextListener&lt;/listener-class&gt;
</code></pre>

<p></p>

<p>and the log4j config file under /WEB-INF</p>

<pre><code>&lt;log4j:configuration&gt;
    &lt;appender name="stdout" class="org.apache.log4j.ConsoleAppender"&gt;
        &lt;layout class="org.apache.log4j.PatternLayout"&gt;
            &lt;param name="ConversionPattern" value="%d %-5p %c{1}:%L %m %n" /&gt;
        &lt;/layout&gt;
    &lt;/appender&gt;

    &lt;appender name="fileAppender" class="org.apache.log4j.RollingFileAppender"&gt;
        &lt;param name="Threshold" value="INFO" /&gt;
        &lt;param name="MaxFileSize" value="512KB" /&gt;
        &lt;param name="MaxBackupIndex" value="10" /&gt;
        &lt;param name="File" value="C:/logs/application.log" /&gt;
        &lt;layout class="org.apache.log4j.PatternLayout"&gt;
            &lt;param name="ConversionPattern" value="%d %-5p %c{1}:%L %m %n" /&gt;
        &lt;/layout&gt;
    &lt;/appender&gt;

    &lt;logger name="com.valuecube.*"&gt;
        &lt;level value="debug" /&gt;
    &lt;/logger&gt;

    &lt;root&gt;
        &lt;priority value="info"&gt;&lt;/priority&gt;
        &lt;appender-ref ref="stdout" /&gt;
        &lt;appender-ref ref="fileAppender" /&gt;
    &lt;/root&gt;
&lt;/log4j:configuration&gt;
</code></pre>

<p>What have I done that Websphere doesn't like?</p>