title: Why amd I getting warnings from Log4J 1.2.17?
body: <p>Why amd I getting warnings from Log4J 1.2.17?  I am trying to use log4j in my java project but I keep getting the following warnings. can someone please tell me why?</p>
  
  <p>THE WARNINGS:</p>
  
  <pre><code>log4j:WARN Continuable parsing error 2 and column 87
  log4j:WARN Document root element "log4j:configuration", must match DOCTYPE root "null".
  log4j:WARN Continuable parsing error 2 and column 87
  log4j:WARN Document is invalid: no grammar found.
  </code></pre>
  
  <p>MY log4j.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;log4j:configuration xmlns:log4j = "http://jakarta.apache.org/log4j/" debug = "false"&gt;
      &lt;appender name = "FILE" class = "org.apache.log4j.RollingFileAppender"&gt;
          &lt;param name = "File" value = "test.log"/&gt;
          &lt;param name = "MaxFileSize" value = "5MB"/&gt;
          &lt;param name = "MaxBackupIndex" value = "50"/&gt;
          &lt;layout class = "org.apache.log4j.PatternLayout"&gt;
              &lt;param name = "ConversionPattern" value = "[%d{dd/MM/yy hh:mm:ss:sss z}] %5p %c{2}: %m%n"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
      &lt;appender name="console" class="org.apache.log4j.ConsoleAppender"&gt;
          &lt;layout class="org.apache.log4j.PatternLayout"&gt;
              &lt;param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n" /&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
  
  
      &lt;category name = "org.uftwf"&gt;
          &lt;priority value = "debug"/&gt;
      &lt;/category&gt;
  
      &lt;!-- 
      &lt;category name = "org.apache.catalina"&gt;
          &lt;priority value = "error"/&gt;
      &lt;/category&gt;
  
  
      &lt;category name = "org.hibernate"&gt;
          &lt;priority value = "debug"/&gt;
      &lt;/category&gt;
  
      &lt;category name="org.hibernate.SQL"&gt; 
          &lt;priority value="TRACE"/&gt;  
      &lt;/category&gt; 
  
      &lt;category name="org.hibernate.type"&gt; 
           &lt;priority  value="TRACE"/&gt; 
       &lt;/category&gt; 
  
       --&gt;
  
      &lt;root&gt;
          &lt;priority value = "warn"/&gt;
          &lt;appender-ref ref = "console"/&gt;
      &lt;/root&gt;
  &lt;/log4j:configuration&gt;
  </code></pre>
  
  <p>I know its only a warning but I want to learn why I am getting them and also stop them from coming.. thanks</p>