log4j in struts


Web tier: servlets, JSP, Web frameworks: log4j in struts

  1. log4j in struts (2 messages)

    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

    Threaded Messages (2)

  2. log4j in struts[ Go to top ]

    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.
  3. thank you[ Go to top ]

    thanks for the reply