Ceki,

I tried initializing with a sample xml config file from the distribution and it works 
fine with Crimson.  I tried playing around with DOCTYPE and other preamable elements 
in my document but I could not get it to work.  I have attached my config file to this 
email in case you can figure out what is wrong with it.

Thanks,
Mark



-----Original Message-----
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 12:59 PM
To: Log4J Users List
Subject: Re: Problem with Crimson parser


Mark,

Can you please provide the XML file causing trouble?

The commit you mention is also available in 1.2.8. (that is why I asked if 
you were using 1.2.8.).

At 06:00 PM 9/2/2003 -0400, [EMAIL PROTECTED] wrote:
>Hi,
>
>I am having trouble parsing my config file with DOMConfigurator using 
>Crimson.  I have no problems with Xerces but when I use crimson I get the 
>exception at the end of this message.
>
>Somehow, Crimson is not able to find the dtd using the SYSTEM identifier 
>log4j.dtd.  I noticed there was a recent commit that added a class 
>UtilLoggingEntityResolver.java with the following comment:
>
>         // we change the system ID to a valid URI so that Crimson won't
>         // complain. Indeed, "log4j.dtd" alone is not a valid URI which
>         // causes Crimson to barf. The Log4jEntityResolver only cares
>         // about the "log4j.dtd" ending.
>
>Is there a work-around I can use for Crimson without having to use the 
>latest CVS code?  As an aside I don't think log4j.dtd is an invalid value 
>for system identifier.  I just looked in the W3C XML spec and it has an 
>example with another such system identifier.

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp

      See you in November at ApacheCon US 2003 in Las Vegas.
      http://apachecon.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

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

	<appender name="LogFile" class="org.apache.log4j.FileAppender">
            <param name="File"   value="C:\\JRun4\\logs\\DTCAppLog.txt" />
            <param name="Append" value="true" />	    	
            <layout class="org.apache.log4j.PatternLayout">
		<param name="ConversionPattern" value="%d{ISO8601} %-5p (%x) [%t]: %c{1} - %m%n"/>
            </layout>	    
	</appender>

	<appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
		<layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern"
		          value="%d{ISO8601} %-5p (%x) [%t]: %c{1} - %m%n"/>
		</layout>		
	</appender>
	<category name="com" class="com.trw.InFlowSuite.Operational.UtilityClasses.InflowLogger">
	</category>
	<root>
	   <priority value ="debug" />
   	   <appender-ref ref="LogFile" />  
   	   <appender-ref ref="STDOUT" />  
	</root>
	<categoryFactory class="com.trw.InFlowSuite.Operational.UtilityClasses.InflowLog4jLoggerFactory"/>
</log4j:configuration>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to