Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1148

After startup and shutdown of the AS 7 CR 1 release, the async-handler configuration gets overwritten with improper element (subhandlers are changed to handlers), and it won't start again with editing the configuration.

    XMLWordPrintable

Details

    • Hide

      You can edit the file again, and replace handlers with subhandlers and the server will start again.

      Show
      You can edit the file again, and replace handlers with subhandlers and the server will start again.

    Description

      I created a configuration to use asynchronous logging in standalone-ha.xml, and after successfully starting the server, running a test, and shutting it down, I could no longer restart the server without a parse error in standalone-ha.xml.

      What is happening, is the file is being rewritten, and it is replacing the subhandlers element with a handlers element which is incorrect.

      So, my configuration, that looks like this when I start the server:

      <subsystem xmlns="urn:jboss:domain:logging:1.0">
      <async-handler name="ASYNC">
      <level name="INFO"/>
      <queue-length value="1024"/>
      <overflow-action value="BLOCK"/>
      <subhandlers>
      <handler name="FILE"/>
      </subhandlers>
      </async-handler>
      <periodic-rotating-file-handler name="FILE" autoflush="true">
      <level name="INFO"/>
      <formatter>
      <pattern-formatter pattern="%d

      {HH:mm:ss,SSS}

      %-5p [%c] (%t) %s%E%n"/>
      </formatter>
      <file relative-to="jboss.server.log.dir" path="server.log"/>
      <suffix value=".yyyy-MM-dd"/>
      </periodic-rotating-file-handler>
      <logger category="com.arjuna">
      <level name="WARN"/>
      </logger>
      <logger category="org.apache.tomcat.util.modeler">
      <level name="WARN"/>
      </logger>
      <logger category="sun.rmi">
      <level name="WARN"/>
      </logger>
      <root-logger>
      <level name="INFO"/>
      <handlers>
      <handler name="ASYNC"/>
      </handlers>
      </root-logger>
      </subsystem>

      ends up looking like this:

      <subsystem xmlns="urn:jboss:domain:logging:1.0">
      <async-handler name="ASYNC">
      <level name="INFO"/>
      <queue-length value="1024"/>
      <overflow-action value="BLOCK"/>
      <handlers>
      <handler name="FILE"/>
      </handlers>
      </async-handler>
      <periodic-rotating-file-handler name="FILE" autoflush="true">
      <level name="INFO"/>
      <formatter>
      <pattern-formatter pattern="%d

      {HH:mm:ss,SSS}

      %-5p [%c] (%t) %s%E%n"/>
      </formatter>
      <file relative-to="jboss.server.log.dir" path="server.log"/>
      <suffix value=".yyyy-MM-dd"/>
      </periodic-rotating-file-handler>
      <logger category="com.arjuna">
      <level name="WARN"/>
      </logger>
      <logger category="org.apache.tomcat.util.modeler">
      <level name="WARN"/>
      </logger>
      <logger category="sun.rmi">
      <level name="WARN"/>
      </logger>
      <root-logger>
      <level name="INFO"/>
      <handlers>
      <handler name="ASYNC"/>
      </handlers>
      </root-logger>
      </subsystem>

      Which is wrong and fails parsing, which prevents the server from starting again, unless I hand edit the file again to correct it.

      Attachments

        Activity

          People

            dlloyd@redhat.com David Lloyd
            rhn-engineering-anmiller Andrig Miller (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: