I'm using
Tomcat 5.0.30 running on Ubuntu Linux (6.06).
I've made a small webapp which runs fine under Tomcat on Windows, but on Linux I've got a problem with log4j.
I've put "commons-logging-1.1.jar" and "log4j-1.2.13.jar" in the webapps libs directory. In the classes directory I've put log4j.properties which point to the log file: /var/log/ne/ne.log
The problem is that the webapp won't even run as log as the log4j.properties is in the class path. If I remove log4j.properties from the classes directory the application will run, but there's no logging.
This looks like a Tomcat problem, since the webapp runs fine on windows. There's also no error messages in any of the files in /var/log/tomcat5/
What's wrong?
My log4j.properties look like this:
# The log4j configuration file.
log4j.rootCategory=DEBUG, FileApp
# FileApp
log4j.appender.FileApp=org.apache.log4j.RollingFileAppender
# File appender
log4j.appender.FileApp.File=/var/log/ne/ne.log
# Max filesize before creating new log file.
log4j.appender.FileApp.MaxFileSize=10MB
# How many backup files to keep
log4j.appender.FileApp.MaxBackupIndex=10
# Log layout
log4j.appender.FileApp.layout=org.apache.log4j.PatternLayout
log4j.appender.FileApp.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-35.35F | %25M() | %-4L | %m%n