[Log4j] listener order matters

The order of the two listeners ContextLoaderListener and Log4jConfigListener in web.xml does matter. Log4jConfigListener should be in front of ContextLoaderListener. Otherwise, the start-up log traces aren't visible and the error below shows up.

log4j:WARN Please initialize the log4j system properly.

你可能感兴趣的:(java,tomcat,log4j,jboss,UP)