Enric,

You should be able to remove Log4j-1.2.14 after adding log4j-1.2-api-2.6.2.jar 
(or log4j-1.2-api-2.4.jar). 
They provide the same API to the application. 

The difference is that log4j-1.2-api-2.x.jar uses log4j-core-2.x as its 
implementation, which is what you want. 

(Shameless plug) Every java main() method deserves http://picocli.info

> On Dec 4, 2017, at 7:34, Enric Jaen <enricj...@yahoo.es.INVALID> wrote:
> 
> i cannot remove log4j-1.2 because we depend on 3rd lib that uses them. That's 
> why we have bridge to log4j2. I downgraded all to 2.4 but not working 
> autoreload. 
> 
> Enric
> 
>    En domingo, 3 de diciembre de 2017 16:24:23 GMT, Mikael Ståldal 
> <mi...@apache.org> escribió:  
> 
> 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
> 

---------------------------------------------------------------------
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