logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Curt Arnold <carn...@apache.org>
Subject Re: SV: log4j Guidelines
Date Thu, 21 Feb 2008 23:02:25 GMT

On Feb 21, 2008, at 4:38 PM, Cosette Kamakian wrote:

> The problem it is still their. Received the same error
>

If you are still getting this error:

log4j:WARN Fatal parsing error 2 and column 6
log4j:WARN The processing instruction target matching "[xX][mM][lL]"  
is not allowed.
log4j:ERROR Could not parse url [file:/D:/WS/Inca_Dev/Inca/AppROOT/WEB- 
INF/classes/log4j.xml].
org.xml.sax.SAXParseException: The processing instruction target  
matching "[xX][mM][lL]" is not allowed.


Then the XML parser provided by the JDK is telling you very precisely  
that your file contains a "<?xml" in a position other than the very  
first byte of the file.

There are also two missing end-tags in the document as seen in this  
diff:

--- log4j.xml	2008-02-21 16:59:40.000000000 -0600
+++ log4j.fixed	2008-02-21 16:59:12.000000000 -0600
@@ -91,16 +91,17 @@
  <appender-ref ref="framework_event"/>

  </category>
  <category name="FILE" additivity="false">
  <level value="DEBUG"/>
-<appender-ref ref="framework_event"/>
+<appender-ref ref="framework_event"/>
+</category>

  <category name="CONSOLE" additivity="false">
  <level value="DEBUG"/>
  <appender-ref ref="framework_event"/>
-
+</category>

  <!-- Setup the Root category -->
  <root>
      <level value="debug"/>
      <appender-ref ref="ASYNC"/>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message