You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Bender Heri <HB...@Ergonomics.ch> on 2006/07/06 18:23:59 UTC

RE: [SPAM (Bayesain Analysis)] - Using XML configurations - Bayesian Filter detected spam

Don't know if this is related to your problem, but I think you must declare the appender before the logger (<root>)
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