I removed Log4j-1.2.14 and now autoreload works fine:
04-Dec-2017 09:22:58.487 INFO [localhost-startStop-1]
org.apache.catalina.core.ApplicationContext.log
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter INFO: loaded (conf ok)
Thanks to all !
Best regards
Enric
En domingo, 3 de diciembre de 2017 23:07:54 GMT, Remko Popma
<[email protected]> escribió:
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 <[email protected]> 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
><[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]