Thanks, Douglas, the debug files showed a problem finding a file. It worked now. thanks. tuan,
________________________________ From: Douglas E Wegscheid <[email protected]> To: Log4J Users List <[email protected]> Sent: Friday, February 20, 2009 11:31:11 AM Subject: Re: Error on log4j could the path for log4j.configuration be wrong, and it can't find your config. add -Dlog4j.debug=true, and it will tell you how it's loading it's config. btw, you can only have one configuration. are you trying to use both log4j.xsl.properties and log4j.pdf.properties? Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." Tuan Quan <[email protected]> wrote on 02/20/2009 01:17:05 PM: > Anyone knows why i got the log4j WARN below. > thanks. > > > log4j:WARN No appenders could be found for logger (org.apache.fop. > render.RendererFactory). > log4j:WARN Please initialize the log4j system properly. > > log4j included in classpath, and the jar file is there. > > The script to call log4j is below: > LOGCHOICE=-Dorg.apache.commons.logging.Log=org.apache.commons. > logging.impl.Log4JLogger > export LOGCHOICE > LOGFILE1=-Dlog4j.configuration=file:conf/log4j.xsl.properties > export LOGFILE1 > LOGFILE2=-Dlog4j.configuration=file:conf/log4j.pdf.properties > export LOGFILE2 > LOGLEVEL=-Dorg.apache.commons.logging.simplelog.defaultlog=INFO > export LOGLEVEL > > > > CONTENT OF log4j.pdf.properties > # FO to PDF logging configuration > log4j.rootLogger=ERROR, A1 > log4j.appender.A1=org.apache.log4j.FileAppender > log4j.appender.A1.File=debug_pdf.txt > log4j.appender.A1.Append=false > log4j.appender.A1.layout=org.apache.log4j.PatternLayout > > > > CONTENT of log4j.xsl.properties > # XML to FO logging configuration > log4j.rootLogger=ERROR, A1 > log4j.appender.A1=org.apache.log4j.FileAppender > log4j.appender.A1.File=debug_xsl.txt > log4j.appender.A1.Append=false > log4j.appender.A1.layout=org.apache.log4j.PatternLayout
