Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-26689

(7.4.z) Bootable JAR deployments cannot use the System.Logger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • BootableJar, Logging
    • None
    • False
    • None
    • False

      JBoss Modules installs a java.lang.System.LoggerFinder when used. In it's main entry point it activates this logger finder by executing ModuleLoggerFinder.activate(). However, the bootable JAR does not use JBoss Modules' entry point so this never gets invoked. This leaves the ModuleLoggerFinder in a state of always queuing messages. If a module or deployment attempts to use a System.Logger, the message will never be seen.

      This could also lead to a crash if the queue of messages is over loaded.

      The issue was introduced in MODULES-441. The ModuleLoggerFinder doesn't take into account that it may never have it's activate method invoked. It was assumed entry points always happen from org.jboss.modules.Main, however that is not the case.

              rhn-cservice-bbaranow Bartosz Baranowski
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: