logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bender Heri" <HBen...@Ergonomics.ch>
Subject RE: [SPAM (Bayesain Analysis)] - Using XML configurations - Bayesian Filter detected spam
Date Thu, 06 Jul 2006 16:25:42 GMT
Do you use the log4j class PropertyConfigurator within your code? Then you would have to change
this to DOMConfigurator.
Heri

> -----Original Message-----
> From: chuanjiang lo [mailto:lochuanjiang@gmail.com]
> Sent: Thursday, July 06, 2006 4:54 PM
> To: log4j-user@logging.apache.org
> Subject: [SPAM (Bayesain Analysis)] - Using XML configurations -
> Bayesian Filter detected spam
> 
> 
> Hi all,
> 
> There is no problem using the properties file now I'm using a 
> XML file for
> configuring the properties.
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
> 
> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
> 
>     <root>
>         <priority value="debug"/>
>         <appender-ref ref="A1"/>
>     </root>
> 
> 
>     <appender name="A1" class="org.apache.log4j.ConsoleAppender">
>             <layout class="org.apache.log4j.PatternLayout">
>                    <param name="ConversionPattern" 
> value="%d{dd MMM yyyy
> HH:mm:ss} [%t] %-5p %c - %m%n"/>
>               </layout>
>     </appender>
> 
> 
> </log4j:configuration>
> 
> However it is giving me error when im running my program.
> 
> Error output:
> 
> javax.xml.parsers.FactoryConfigurationError: Provider org
> jaxp.DocumentBuilderFactoryImpl not found
> 
> and more....
> 
> Using JDK 1.5
> 
> Appreciate any help.
> 

---------------------------------------------------------------------
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