Web tier: servlets, JSP, Web frameworks: log4j in struts
I am new to struts. I want to configure log4j with struts application in order to receive errors. receiving log4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources). log4j:WARN Please initialize the log4j system properly. I placed log4j.properties file under WEB-INF/classes I want to know how to configure log4j correctly
The reason why you see this message is that your log4j configuration file(i.e. log4j.xml or log4j.properties) is NOT found in the classpath. Placing the log4j configuration file in the applications classpath should solve the issue.
thanks for the reply