I use 1.2 and got the error:

log4j:ERROR Parsing error on line 2 and column -1
log4j:ERROR URI
"zip:./appserve/serverclasses/log4j1.2.jar#org/apache/log4j/xml/log4j.dtd"
has a fragment ID.
log4j: Threshold ="null".

My file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration
xmlns:log4j='http://jakarta.apache.org/log4j/'
debug="true">
......

--- Thomas Tuft Muller <[EMAIL PROTECTED]> wrote:
> Log4j gurus,
> 
> After (finally) upgrading from 1.1.3 to 1.2rc1, I
> encounter the following
> errors when parsing our application main log4j.xml
> file. Log4j seems to be
> configured OK, but I can't say I like the
> log4j:ERROR statements dumped to
> std err.
> 
> Please find the configuration file log4j.xml file
> attached.
> 
> Any help is much appreciated.
> 
> log4j:ERROR Parsing error on line 21 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 23 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 23 and column -1
> log4j:ERROR Element type "additivity" is not
> declared.
> log4j:ERROR Parsing error on line 23 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 27 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 29 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 29 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 49 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 51 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 51 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 55 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 57 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 57 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 63 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 65 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 65 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 69 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 71 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 71 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 75 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 77 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 77 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 81 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 83 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 83 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 87 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 89 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 89 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 93 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 95 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 95 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 99 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 101 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 101 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 105 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 107 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 107 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 111 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 113 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 113 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 117 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 120 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 120 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 124 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 126 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 126 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 130 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 132 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 132 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 136 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 138 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 138 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 142 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 144 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 144 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 148 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "category" here.
> log4j:ERROR Parsing error on line 150 and column -1
> log4j:ERROR Element "category" does not allow
> "additivity" here.
> log4j:ERROR Parsing error on line 150 and column -1
> log4j:ERROR Attribute "value" is not declared for
> element "additivity".
> log4j:ERROR Parsing error on line 158 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "appender" here.
> log4j:ERROR Parsing error on line 168 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "appender" here.
> log4j:ERROR Parsing error on line 182 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "appender" here.
> log4j:ERROR Parsing error on line 191 and column -1
> log4j:ERROR Element "log4j:configuration" does not
> allow "appender" here.
> 
=== message truncated ===> <?xml version="1.0"
encoding="UTF-8"?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <!-- Log4j configuration file                       
>        -->
> <!-- $Id: log4j.xml,v 1.16 2002/05/08 12:46:09
> administrator Exp $ -->
> <!--                                                
>        -->
> 
> <log4j:configuration
> xmlns:log4j='http://jakarta.apache.org/log4j/'
>               debug="true" threshold="debug">
> 
>       <!--
>               ***  Categories  ***
>       -->
> 
>       <!-- Root category -->
>       <root>
>               <priority value="debug" />
>               <appender-ref ref="ASYNC-MAIN" />
>       </root>
> 
>       <category name="SystemOut">
>               <priority value="debug"/>
>               <additivity value="false"/>
>               <appender-ref ref="SYSTEM_OUT"/>
>       </category>
> 
>       <category name="SystemErr">
>               <priority value="debug"/>
>               <additivity value="false"/>
>               <appender-ref ref="SYSTEM_ERR"/>
>       </category>
> 
>       <!--
>       <category name="SnmpInfo">
>               <priority value="info" />
>               <additivity value="true" />
>               <appender-ref ref="SNMP_INFO" />
>       </category>
>       -->
> 
>       <!--
>       <category name="SnmpError">
>               <priority value="error" />
>               <additivity value="true" />
>               <appender-ref ref="SNMP_ERROR" />
>       </category>
>       -->
> 
>       <category name="NTEventLog">
>               <priority value="info" />
>               <additivity value="true" />
>               <appender-ref ref="NT_EVENT_LOG" />
>       </category>
> 
>       <category name="Alarm">
>               <priority value="info" />
>               <additivity value="true" />
>               <appender-ref ref="NT_EVENT_LOG" />
>               <!-- <appender-ref ref="SNMP_INFO" /> -->
>               <!-- <appender-ref ref="SNMP_ERROR" /> -->
>       </category>
> 
>       <category name="DatagramService">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-DATAGRAM_SERVICE" />
>       </category>
> 
>       <category name="SignalingService">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-SIGNALING_SERVICE" />
>       </category>
> 
>       <category name="UserStoreService">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-USER_STORE_SERVICE" />
>       </category>
> 
>       <category name="TelephonyService">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="TELEPHONY_SERVICE" />
>       </category>
> 
>       <category name="JtapiEventDispatcher">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-JTAPI" />
>       </category>
> 
>       <category name="MbxProvider">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-MBX_PROVIDER" />
>       </category>
> 
>       <category name="MbxCall">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-MBX_CALL" />
>       </category>
> 
>       <category name="MbxConnection">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-MBX_CONNECTION" />
>       </category>
> 
>       <category name="MbxTerminalConnection">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-MBX_TERM_CONNECTION" />
>       </category>
> 
>       <category
>       
>
name="MergeIncomingMbxCallTask$MergeIncomingMbxCallTaskStateMachine">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref
> ref="ASYNC-MERGE_INCOMING_MBX_CALL_TASK" />
>       </category>
> 
>       <category name="MessageHandlerEvent">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="ASYNC-MESSAGE_HANDLER_EVENTS"
> />
>       </category>
> 
>       <category name="MbxAddress">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="MBX_ADDRESS" />
>       </category>
> 
>       <category name="MbxTerminal">
>               <priority value="debug" />
>               <additivity value="true" />
>               <appender-ref ref="MBX_TERMINAL" />
>       </category>
> 
>       <category name="SmppConnectionTransmitter">
>               <priority value="debug"/>
>               <additivity value="false"/>
>               <appender-ref ref="SMSC_TRANSMITTER"/>
>       </category>
> 
>       <category name="SmppConnectionReceiver">
>               <priority value="debug"/>
>               <additivity value="false"/>
>               <appender-ref ref="SMSC_RECEIVER"/>
>       </category>
> 
>       <!--
>               ***  Appenders  ***
>       -->
> 
>       <appender name="ASYNC-MAIN"
> class="org.apache.log4j.AsyncAppender">
>               <param name="locationInfo" value="true" />
>               <appender-ref ref="MAIN" />
>               <!-- <appender-ref ref="SMTP_ONRELAY" /> -->
>               <!-- <appender-ref ref="SMTP_CUSTOM" /> -->
>               <!-- <appender-ref ref="ONRELAY_LOG_SERVER" /> -->
>               <!-- <appender-ref ref="SNMP_ERROR" /> -->
>       </appender>
> 
>       <!-- Main appender -->
>       <appender name="MAIN"
>               
> class="org.apache.log4j.DailyRollingFileAppender">
>               <param name="file" value="${mbx.home}/log/mbx.log"
> />
>               <param name="append" value="true" />
>               <param name="bufferedIO" value="true" />
>               <param name="bufferSize" value="8192" />
>               <param name="datePattern" value="'.'yyyy-MM-dd" />
>           <param name="threshold" value="DEBUG" />
>               <layout class="org.apache.log4j.PatternLayout">
>                       <param name="ConversionPattern"
>                       value="%d{ABSOLUTE} [%-5p] [%-10c] [%-8t]
> [%C{1}.%M():%L] - &quot;%m&quot;%n" />
>               </layout>
>       </appender>
> 
>       <appender name="SYSTEM_OUT"
> class="org.apache.log4j.FileAppender">
>               <param name="file"
> value="${mbx.home}/log/stdout.log" />
>               <param name="append" value="false" />
>               <layout class="org.apache.log4j.PatternLayout">
>                       <param name="ConversionPattern"
>                               value="%d{ISO8601} - &quot;%m&quot;%n" />
>               </layout>
> 
=== message truncated ===> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

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

Reply via email to