Richard,

I'm pretty sure someone has solved this one before. Try searching the
archives.

Peter

On Thu, 2004-06-17 at 17:59, Richard Han wrote:
> Hi all,
> 
> 
> I'm using tdk2.3, I got the log4j errors when tomcat is started,
> 
> <err-msg-at-tomcat-startup>
> 
> log4j:WARN No appenders could be found for logger
> (org.apache.commons.digester.Digester).
> log4j:WARN Please initialize the log4j system properly.
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.29
> log4j:ERROR Could not find value for key
> log4j.appender.org.apache.torque.engine
> log4j:ERROR Could not instantiate appender named
> "org.apache.torque.engine".
> Starting service Tomcat-Apache
> Apache Tomcat/4.1.29
> 
> </err-msg-at-tomcat-startup>
> 
> Could anyone give me a hand to fix this, I'm using tdk2.3.
> 
> Here is the /WEB-INF/conf/Log4J.properties
> 
> 
> <log4j.properties>
> #
> ------------------------------------------------------------------------
> #
> # Logging Configuration
> #
> # $Id: Log4j.properties,v 1.1.1.1 2003/12/03 22:54:49 painter Exp $
> #
> #
> ------------------------------------------------------------------------
> 
> applicationRoot = ${tdk.home}/${tdk.project}
> 
> # If we don't know the logging facility, put it into the
> # turbine.log
> #
> log4j.rootLogger = INFO, turbine
> 
> #
> # Turbine goes into Turbine Log
> #
> log4j.category.org.apache.turbine = DEBUG, turbine
> log4j.additivity.org.apache.turbine = false
> 
> #
> # Torque has its own log file
> #
> log4j.category.org.apache.torque = DEBUG, torque
> log4j.additivity.org.apache.torque = false
> 
> 
> #
> # Velocity Logfile
> #
> log4j.category.velocity = DEBUG, velocity
> log4j.additivity.velocity = false
> 
> #
> # Scheduler Category
> #
> log4j.category.scheduler = DEBUG, scheduler
> log4j.additivity.scheduler = false
> 
> #
> # Commons goes into Turbine Log
> #
> log4j.category.org.apache.commons = DEBUG, turbine
> log4j.additivity.org.apache.commons = false
> 
> ########################################################################
> #
> # Logfile definitions
> #
> ########################################################################
> 
> 
> #
> # turbine.log
> #
> log4j.appender.turbine = org.apache.log4j.FileAppender
> log4j.appender.turbine.file = ${applicationRoot}/logs/turbine.log
> log4j.appender.turbine.layout = org.apache.log4j.PatternLayout
> log4j.appender.turbine.layout.conversionPattern = %d [%t] %-5p %c - %m%n
> log4j.appender.turbine.append = false
> 
> #
> # torque.log
> #
> log4j.appender.torque = org.apache.log4j.FileAppender
> log4j.appender.torque.file = ${applicationRoot}/logs/torque.log
> log4j.appender.torque.layout = org.apache.log4j.PatternLayout
> log4j.appender.torque.layout.conversionPattern = %d [%t] %-5p %c - %m%n
> log4j.appender.torque.append = false
> 
> #
> # Scheduler Output
> #
> log4j.appender.scheduler = org.apache.log4j.FileAppender
> log4j.appender.scheduler.file = ${applicationRoot}/logs/scheduler.log
> log4j.appender.scheduler.layout = org.apache.log4j.PatternLayout
> log4j.appender.scheduler.layout.conversionPattern = %d [%t] %-5p %c -
> %m%n
> log4j.appender.scheduler.append = false
> 
> #
> # Velocity gets configured to write its output onto the velocity
> # category.
> #
> log4j.appender.velocity = org.apache.log4j.FileAppender
> log4j.appender.velocity.file = ${applicationRoot}/logs/velocity.log
> log4j.appender.velocity.layout = org.apache.log4j.PatternLayout
> log4j.appender.velocity.layout.conversionPattern = %d [%t] %-5p %c -
> %m%n
> log4j.appender.velocity.append = false
> 
> </log4j.properties>
> 
> 
> Thank you in advance!
> 
> Richard
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to