Thursday, September 8, 2011

SEVERE: Error listenerStart - How to solve

In Tomcat.

This error generally happens if the server couldn't get the required jar files from the context. At the same time the server console also not describe the problem. In this case we need to configure the log4j.properties file. This file must be kept inside common\classes folder of tomcat.

log4j.properties
------------------
log4j.rootLogger=INFO, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=$\{catalina.home\}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d{MM/dd HH:mm:ss} %-5p %30.30c %x - %m\n

Then run the tomcat server and see the tomcat.log from the folder logs/ . You can able to catch the error list inside this.

Cheers guys.

Saturday, January 24, 2009

My Text

Hello shiba, How Are You