log4j:WARN No appenders could be found for logger in web.xml

Posted by cometta on Stack Overflow See other posts from Stack Overflow or by cometta
Published on 2009-08-12T13:24:27Z Indexed on 2010/04/12 15:03 UTC
Read the original article Hit count: 839

I already put the log4jConfigLocation in web.xml, but still, i get warning

log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. what did i missed out?

    <context-param>
    	<param-name>contextConfigLocation</param-name>
    	<param-value>

    			/WEB-INF/applicationContext.xml

    	</param-value>
    </context-param>

 <context-param>
    <param-name>log4jConfigLocation</param-name>
    <param-value>/WEB-INF/classes/log4j.properties</param-value>
  </context-param>



  <listener>
    <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  </listener>

  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>





    <servlet>
    	<servlet-name>suara2</servlet-name>
    	<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

    </servlet>
    <servlet-mapping>
    	<servlet-name>suara2</servlet-name>
    	<url-pattern>/*</url-pattern>
    </servlet-mapping>

© Stack Overflow or respective owner

Related posts about spring

Related posts about spring-framework