How to configure use-parent-handlers in JBoss EAP 6

Solution Unverified - Updated -

Issue

  • How to configure use-parent-handlers in Jboss eap6
  • Problems with logger category:
            <logger category="com.redhat.gss" use-parent-handlers="false">
                <level name="INFO"/>
                <handlers>
                    <handler name="FILE"/>
                </handlers>
            </logger>

The traces are not seeing in the server.log

  • Using additivity=false with logger in EAP 6.1 and causes following error :
ERROR [org.jboss.as.server] (Controller Boot Thread) JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    at org.jboss.as.server.ServerService.boot(ServerService.java:308) [jboss-as-server-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:188) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]
    at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_21]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[106,21]
Message: JBAS014788: Unexpected attribute 'additivity' encountered
    at org.jboss.as.controller.parsing.ParseUtils.unexpectedAttribute(ParseUtils.java:105) [jboss-as-controller-7.2.0.Final-redhat-8.jar:7.2.0.Final-redhat-8]

. . . .

  • We have defined a log handler where application log messages are sent into the separate log file. However the logs are getting printed in server.log as well as application.log file. How to send log meassages only in application.log file?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.