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:[EMAIL PROTECTED] > Sent: Thursday, July 06, 2006 4:54 PM > To: [email protected] > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
