java - log4j not logging in AIX with websphere -
I have a servlet that should log the message with log4j under development environment (Windows + Eclipse + Tomcat), log4j doing work.
When I deploy servlet to production (AIX + websphere), then he did not log any.
I do not know what happened. What is the possible reason? The logging function was working in the development environment, after verifying it was created by the war file Eclipse. I want to gather more clues before replacing it in production. The Java program did not provide any clue. I looked at SystemOut.log, and log4j loggers were started successfully, however, they did not say anything went wrong about the log files. I have doubts on 2 reasons: 1) There are DWXR-XR-X privileges in the logging directory, do Java programs not have the right to create files there? 2) Log 4 J.Properties file was weird when I saw it through Ax, so I found out that after each line end there was a ^ M. Perhaps Unix does not need the character of this carriage return. Maybe it messed up ^ M characters? EDIT: I came to know that there is another log file called SystemErr.log. There is an error message in: [9/1/11 17: 07: 43: 086 HKT] 00000013 SystemRR R log4j: Error Setfile (empty, true) Call failed [9/1/11 17: 07: 43: 086 HKT] 00000013 SystemRR R Java. OfflineNoteFound Exception: /bps/log/BpsPdfBill.log (file access permissions are not allowed to specify the action.) < / P> How does this subletase feel? : -) On the subject: If you put your logfile out of folders where WAS opens your war file, which is the owner? To be able to write the directory with those permissions, the user must be the owner of ^ M There are white space for UNIX thay and there is no such problem (only a nuisance), you can add a task to your anti-build file so that Newline should be removed before packing the war archive S Of
was (and he also has permission to access the original folders.)
Comments
Post a Comment