title: Weblogic 11g log4j:WARN Please initialize the log4j system properly
body: <p>i use log4j with weblogic 11g version, i get the below error in the server console</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (org.apache.wicket.protocol.http.pagestore.FileChannelPool).
  log4j:WARN Please initialize the log4j system properly.
  </code></pre>
  
  <p>i use the below server start</p>
  
  <pre><code>-Dlog4j.configuration=/apps/users/projects/domains/java_domain/log4j.xml
  </code></pre>
  
  <p>My log4j.xml is </p>
  
  
  
  <pre><code>&lt;!DOCTYPE log4j:configuration SYSTEM "D:/Java/apache-log4j-1.2.15/src/main/resources/org/apache/log4j/xml/log4j.dtd" &gt;
  &lt;log4j:configuration&gt; 
  &lt;!--  Appenders --&gt;
  &lt;appender name="stdout" class="org.apache.log4j.ConsoleAppender"&gt;
      &lt;layout class="org.apache.log4j.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%5p %d{ISO8601} [%t][%x] %c - %m%n" /&gt;
      &lt;/layout&gt;
  &lt;/appender&gt;
  
  &lt;!--  Loggers for ibatus and JDBC database --&gt;
  &lt;logger name="java.sql.PreparedStatement" additivity="false"&gt;
      &lt;level value="debug"/&gt;
  &lt;/logger&gt;
  &lt;logger name="java.sql.Connection" additivity="false"&gt;
  &lt;level value="debug"/&gt;
  &lt;/logger&gt;
  &lt;!--  The Root Logger --&gt;
  &lt;root&gt;
      &lt;level value="error"/&gt;
      &lt;appender-ref ref="stdout"/&gt;
  &lt;/root&gt;
  
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>Expected result in server console is something like this          </p>
  
  <pre><code>2014-07-03 18:00:34,154 [java.sql.ResultSet] DEBUG - {rset-100060} Header: [ID, PERSON_NAME, BIRTH_DATE, GENDER, EMAIL]
  2014-07-03 18:00:34,154 [java.sql.ResultSet] DEBUG - {rset-100060} Result: [1600, MARK, 1980-11-18, M, null]
  2014-07-03 18:00:34,154 [java.sql.ResultSet] DEBUG - {rset-100060} Result: [2032,STEVEN, 1980-10-18, M, null]
  2014-07-03 18:00:34,154 [java.sql.Connection] DEBUG - {conn-100061} Connection
  2014-07-03 18:00:34,154 [java.sql.Connection] DEBUG - {conn-100061} Preparing Statement:select ID, EMAIL, MOBILE,TELEPHONE_NUMBER from USER
  </code></pre>
  
  <p>I have to use iBatis to print SQL statements but if you see the WARN in the console, i see <strong>org.apache.wicket.protocol.http.pagestore.FileChannelPool</strong> prints. i also use wicket framework in my applications       </p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (org.apache.wicket.protocol.http.pagestore.FileChannelPool).
  </code></pre>
  
  <p>i also tried placing the log4j.xml inside <strong>WEB-INF/classes</strong> but it didnt work.</p>
  
  <p>Any help will be of more use</p>
  
  <p>Thanks.</p>