Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.1.2
-
None
-
Ubuntu, Tomcat 8.0.12, Tomcat 7.0.39
Description
Even though logback.xml gets correctly loaded on startup and scheduled for reloading, changes to the file don't get detected and configuration never gets refreshed.
Steps to reproduce:
- download a clean Tomcat bundle (to make sure there are no interferences)
- clone https://github.com/kryger/logback-war-configuration-scan-repro
- build with mvn package
- copy the built demo-0.0.1-SNAPSHOT.war file to tomcat/webapps/
- start Tomcat up (tomcat/bin/startup.sh)
- watch tomcat/logs/catalina.out
- navigate to http://localhost:8080/demo/
00:51:16,860 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at file:/home/kryger/Programy/apache/apache-tomcat-8.0.12/webapps/demo/WEB-INF/classes/logback.xml
00:51:16,926 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeFilter scanning period to 2 seconds
00:51:16,926 |-INFO in ReconfigureOnChangeFilterUnknown macro: {invocationCounter=0}- Will scan for changes in [[/home/kryger/Programy/apache/apache-tomcat-8.0.12/webapps/demo/WEB-INF/classes/logback.xml]] every 2 seconds.
00:51:16,926 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Adding ReconfigureOnChangeFilter as a turbo filter
(...)
No matter how long I wait and how many log events happen (i.e. reloading the page) the /webapps/demo/WEB-INF/classes/logback.xml file doesn't get reloaded.