>> It looks like you have bad syntax in you log4j.properties file.
If that were the case, i would have expected it to fail the first time i
started the application?

to be clear, here are the steps to reproduce the error
[1] deploy an unpacked webapp "myapp" to $TOMCAT_HOME/webapps/myapp
[2] start tomcat
[3] all webapps start and work fine, both tomcat and application logging
works fine
[4] using the /manager webapp stop myapp
[5] myapp (seems to) shut down fine
[6] using the /manager webapp start myapp
[7] myapp does not start because of the reported error

It might also be worth mentioning that my application requires the user to
log in and is then redirected to an LDAP server for authentication.

But, just in case you are right I stripped the log4j.properties down to
something very simple and i still get the same error *only* after stopping
and restarting the application via the manager application.  

I attached my stripped down versions of the log4j.properties files just in
case you can spot something (oh please don't let there be a typo :))


log4j.properties in webapps/myapp/WEB-INF/classes
-------------------------------------------------
log.home=C:/Tomcat 5.5/logs
app.name=myapp

# root logger sends INFO level messages to debug and error appenders
log4j.rootLogger=DEBUG,A1

# define the debug appender
log4j.appender.A1=org.apache.log4j.RollingFileAppender
log4j.appender.A1.Append=true
log4j.appender.A1.File=${log.home}/${app.name}/myapp.log
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p %3x
%c - %m%n


# define the tomcat appender for Tomcat messages specific to this
application
log4j.appender.tomcat=org.apache.log4j.RollingFileAppender
log4j.appender.tomcat.Append=true
log4j.appender.tomcat.File=${log.home}/${app.name}/tomcat.log
log4j.appender.tomcat.layout=org.apache.log4j.PatternLayout
log4j.appender.tomcat.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p
%c %3x - %m%n



log4j.properties in $TOMCAT_HOME/common/classes
-----------------------------------------------
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d %p %t %c - %m%n





---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to