This week's book giveaway is in the Programmer Certification forum. We're giving away four copies of OCP Oracle Certified Professional Java SE 11 Programmer I Study Guide: Exam 1Z0-815 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
I am using log4j for quite some time but I am stuck with some issue that is not getting resolved.
We have a servlet that is initializing log4j and when invoked for the first time, log4j logs are getting printed (this means its reading log4j config file) but when it's invoked for second time and so on, the logs are not getting printed. When I restart the server, this happens again and logs getting printed for the first time only.
yes, because we are getting response every time. We have some validation logic for the input data and some DB operations and then it returns message in the form of XML message. When we change the input data, its working as expected like giving error msg, success, failure etc... only concern is with the logs not printing in the file that will make it hard for debugging in case of any issue.
posted 9 years ago
Ok the problem is resolved. When I was creating war file it was including some CVS folders... i unzipped it, removed all the unwanted CVS folders and created war again and it started working. However, I am still clueless as what those CVS folders have to do with logging at all....