I have a log4j.properties file that I have set to print debugging information for a few variables in my code and this works in the windows envrionment but when I uploaded the war file to a unix machine, I do not get the debugging statements. Why the different behavior between the two? Here is a snippet of my file:
So if this file does exist and you have needed permissions to access and edit it, than doesn't the application shows some log4j warnings?
Usually in such cases (no warning message, no logs) I had some problems with multiple log4j JARs in the classpath. Maybe your tomcat server is configured different on your Windows box and Unix? Check the server-level libs for differences.
You can also check the extensions directory (i.e. /usr/lib/jvm/java-6-sun/jre/lib/ext) for possibly conflicting JARs.
Also - no errors in standard output - catalina.out file?
posted 9 years ago
Thank you so much for your reply. I had an error in my log4j.properties. I was using the wrong address for the file in unix. Now that I have fixed it, I have two files. One with a datestamp in the name which still shows the initialize and close webappcontext info and another without datastamp in the name which has the information showing up in windows. I am looking at catalina.out now and trying to see what it shows for my app. Thanks again for your help. I am appreciating how much more there is to know to logging!!!