This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have it working on my local server setup, but can't get it working on the Tomcat/Red Hat box. The log file is never created and nothing appears in catalina.out, which if I understand correctly, is where the console appender messages should appear. Please correct me if that's wrong.
The log4j.jar file is in the Tomcat /lib directory and the log4j.properties file is in mywebapp/WEB-INF/classes. Here is the properties file:
# map this appender as the root logger
# set the debugging on for testing the log4j setup
# set the maximum log file size
# archive log files (one backup file here)
I'm at a loss as to how to troubleshoot this any further. I've restarted the webapp and even restarted Tomcat with no change. There are no errors in catalina.out and no errors from the app when it hits the log.debug statements.
At this point I'm thinking about creating a simple, single page jsp test app that runs in it's own context to try and confirm that log4j is working, but I feel like I'm clutching at straws. Any tips? Am I correct that console appender messages should appear in catalina.out?
"There is no reason for any individual to have a computer in his home" ~ Ken Olson, Co-founder of DEC, 1977