On Apr 13, 2010, at 2:25 AM, Mohan.Radhakrishnan wrote:

> 
> 1. I had to copy the newer DTD from the Apache extras JAR to the log4j JAR.
> 'rollingPolicy' was not recognized by the older DTD. Is this right ?

rollingPolicy is in the DTD in log4j 1.2.16 which can be downloaded from 
http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.16/apache-log4j-1.2.16.tar.gz
 (doesn't work with Safari as it does not respect the content type of text/html 
and thinks it is the tarball itself and not an HTML page describing mirrors).  
http://logging.apache.org/log4j/1.2/download.html should be updated shortly.

> 
> 2. Put both JARS in the classpath.
> 
> This warning is shown though.
> 
> log4j:WARN Continuable parsing error 182 and column 23
> log4j:WARN The content of element type "log4j:configuration" must match
> "(renderer*,appender*,plugin*,(category|logger)*,root?,(categoryFactory|loggerFactory)?)".

log4j.dtd specifies a specific order for the children of log4j:configuration 
however log4j is more permissive.  This warning indicates that configuration 
doesn't list appenders first, loggers next and then the root logger.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to