Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-4094

The following message appears every minute on the minute: [org.jboss.logging.Log4jService$URLWatchTimerTask] (Timer-0:) Configuring from URL: resource:log4j.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Trivial Trivial
    • No Release
    • JBossAS-4.0.5.CR1
    • Logging
    • None
    • Seen on linux but probably will occur anyways.

    • Workaround Exists
    • Hide


      Set the system time on the host OS properly of course. NTP would be a good start.

      Show
      Set the system time on the host OS properly of course. NTP would be a good start.

      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.

              starksm64 Scott Stark (Inactive)
              sagneta_jira Stephen Agneta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: