Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2695

Creating named formater patterns for offline servers fail

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.Final
    • 8.0.0.CR1
    • Logging
    • None
    • any domain configuration

    • Hide
      • extract wildfly-8.0.0.CR1
      • run bin/domain
      • execute commands via CLI
        • :stop-servers
        • /profile=full/subsystem=logging/console-handler=CONSOLE:remove
        • /profile=full/subsystem=logging/pattern-formatter=TESTPATTERN:add(pattern="%d%n")
        • /profile=full/subsystem=logging/console-handler=CONSOLE:write-attribute(name=named-formatter, value=TESTPATTERN)
        • /host=master/server-config=server-one:start
      Show
      extract wildfly-8.0.0.CR1 run bin/domain execute commands via CLI :stop-servers /profile=full/subsystem=logging/console-handler=CONSOLE:remove /profile=full/subsystem=logging/pattern-formatter=TESTPATTERN:add(pattern="%d%n") /profile=full/subsystem=logging/console-handler=CONSOLE:write-attribute(name=named-formatter, value=TESTPATTERN) /host=master/server-config=server-one:start
    • Workaround Exists
    • Hide

      Create the pattern before stopping the servers.

      Show
      Create the pattern before stopping the servers.

      After adding and attaching a named formatter to an offline server starting the server fails due to an invalid logging configuration.

      server-one fails with:
      {{
      [Server:server-one] 00:08:00,214 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("add") failed - address: ([
      [Server:server-one] ("subsystem" => "logging"),
      [Server:server-one] ("console-handler" => "CONSOLE")
      [Server:server-one] ]): java.lang.IllegalArgumentException: Formatter "TESTPATTERN" is not found
      }}

      I assume logging.properties is written too late in LoggingOperations.java

              jperkins-rhn James Perkins
              systemtrap Matthias Berndt (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: