You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Tim Sawyer <ts...@nildram.co.uk> on 2002/03/10 15:01:08 UTC

Log4J and Orion

Hi,

I'm using Log4J in a web application, and it works fine using Tomcat.  I've
recently switched to using Orion, and I get the following at startup, when I
call DOMConfigurator.configure().

Can I do anything to get rid of it?  What do I call setErrorHandler() on?

Warning: validation was turned on but an org.xml.sax.ErrorHandler was not
set, which is probably not what is desired.  Parser will use a default
ErrorHandler to print the first 10 errors.  Please call the
'setErrorHandler' method to fix this.
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=2: Element type
"log4j:configuration" is not declared.
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=2: Attribute
"debug" is not declared for element "log4j:configuration".
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=2: Attribute
"xmlns:log4j" is not declared for element "log4j:configuration".
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=7: Element type
"appender" is not declared.
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=7: Attribute
"name" is not declared for element "appender".
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=7: Attribute
"class" is not declared for element "appender".
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=8: Element type
"param" is not declared.
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=8: Attribute
"name"is not declared for element "param".
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=8: Attribute
"value" is not declared for element "param".
Error: URI=classloader:/org/apache/log4j/xml/log4j.dtd Line=9: Attribute
"name"is not declared for element "param".

My log4j config file is as follows:

<?xml version="1.0" encoding="UTF-8"?>
<log4j:configuration debug="false"
xmlns:log4j="http://jakarta.apache.org/log4j/">

        <appender name="A1" class="org.apache.log4j.RollingFileAppender">
          <param name="File" value="/tmp/eaitoolkit.log"/>
          <param name="Append" value="true"/>
          <param name="MaxFileSize" value="5MB"/>
          <param name="MaxBackupIndex" value="5"/>
          <layout class="org.apache.log4j.PatternLayout">
             <param name="ConversionPattern" value="%d{HH:mm:ss} [%t] %-5p
%C{2} - %m%n"/>
          </layout>
        </appender>

        <root>
          <priority value="debug"/>
          <appender-ref ref="A1"/>
        </root>
</log4j:configuration>

Cheers,

Tim.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>