I am using xerces2 and I get the following message
when starting.

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=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=61: Element type "log4j:configuration" must be
declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=66: Element type "appender" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=67: Element type "layout" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=68: Element type "param" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=73: Element type "appender" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=74: Element type "layout" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=76: Element type "param" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=77: Element type "param" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=80: Element type "filter" must be declared.
Error:
URI=jar:file:/Z:/new/build/dist/lib/both/log4j.jar!/org/apache/log4j/xml/log4j.dtd
Line=81: Element type "param" must be declared.

Would it be possible to allow validation to be
disabled in the DOMConfigurator?  I have subclassed it
and disabled validation with no ill effects, and I am
using the ref construct in my xml configuration.  I am
not sure what is meant by the ID/IDREF comment shown
below.

Here is some code:
DOMCongiruator.java:611
// This makes ID/IDREF attributes to have a meaning.
Don't ask
// me why.
dbf.setValidating(true);

Here is a snippet from my xml configuration:
<appender name="ASYNC"
class="org.apache.log4j.AsyncAppender">
  <appender-ref ref="CONSOLE"/>
  <appender-ref ref="LOG_FILE"/>
  <appender-ref ref="TIME_FILE"/>
  <appender-ref ref="AUDIT_FILE"/>
  <appender-ref ref="SQL_FILE"/>
</appender>

Thanks,
Ross Cormier


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to