I want to use log4j-web in a app that uses spring WebApplicationInitializer but when I include log4j-web dependency the application gives this exception:
java.lang.IllegalStateException: Cannot initialize context because there is already a root application context present - check whether you have multiple ContextLoader* definitions in your web.xml! at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:277) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:800) and my WebApplicationInitializer is called twice even when I set "isLog4jAutoInitializationDisabled" context param to "true" programmatically and in web.xml. José Valencia