First, remove log4j-1.2.14.jar from classpath.

Then make sure you use the same version of all Log4J 2.x jars, now you are mixing 2.4 with 2.6.2.


On 2017-12-03 17:07, Enric Jaen wrote:
log4j2 is working fine, but not the auto reload. I have tried several 
configurations but none has worked. This is the latest I tried:

*** log4j2.xml :
<Configuration status="trace" monitoringInterval="5">


*** web.xml (sevlet 3.0)<context-param>
     <param-name>log4jConfiguration</param-name>
     <param-value>file:///tmp/log4j2.xml</param-value>
</context-param>

<context-param>
      <param-name>log4j.refresh.interval</param-name>
      <param-value>5</param-value>
</context-param>

     <listener>
         <listener-class>
             org.apache.logging.log4j.web.Log4jServletContextListener
         </listener-class>
     </listener>


**** jars deployed:
log4j-1.2.14.jar                  log4j-iostreams-2.4.jar           
log4j-taglib-2.4.jarlog4j-1.2-api-2.6.2.jar  log4j-jcl-2.6.2.jar      
log4j-web-2.6.2.jarlog4j-api-2.6.2.jarlog4j-jul-2.4.jar                 
log4j-core-2.6.2.jar              log4j-slf4j-impl-2.4.jar

Please any suggestion ?

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to