-
Bug
-
Resolution: Obsolete
-
Trivial
-
JBossAS-4.0.5.CR1
-
None
-
Seen on linux but probably will occur anyways.
-
Workaround Exists
-
org.jboss.logging.Log4jService has a bug in which it will display the log message "[org.jboss.logging.Log4jService$URLWatchTimerTask] (Timer-0 Configuring from URL: resource:log4j.xml" every minute on the minute if the log4j.xml file has a modification file that is in the FUTURE in comparison to the system clock.
The reason is because the algorithm for testing modification times is incorrect. Instance variable lastConfigured should be set to the modification time and not the current system time. The conditional below should be changed:
From:
if (lastConfigured < lastModified)
to:
if ( 0 != (lastConfigured - lastModified))
This is much more robust and does not require that relative time difference be precise. Rather, we simply check if the modifcation time has changed in any way which is what is desired.