Why assign-handler operation of logger can not run under batch mode using CLI

Solution Unverified - Updated -

Issue

  • While using JBoss EAP 6.3 in Standalone mode problem observed while adding logging configuration using CLI command in batch mode.

    [standalone@localhost:9999 /] batch 
    [standalone@localhost:9999 / #] /subsystem=logging/logger=aaa.bbb:add
    [standalone@localhost:9999 / #] /subsystem=logging/logger=aaa.bbb:assign-handler(name=FILE)
    [standalone@localhost:9999 / #] run-batch 
    {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS011536: Handler FILE is already assigned."}}
    

    These CLI command works fine if we don't run the script in batch mode.

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.