How to enable application that is already assign to a server-group and disabled?

Solution Verified - Updated -

Issue

  • When the below CLI command runs to enable the application the below error is generated:
[domain@localhost:9990 /] /server-group=main-server-group/deployment=sample.war:add(enabled=true)
{
    "outcome" => "failed",
    "failure-description" => {"domain-failure-description" => "WFLYCTL0212: Duplicate resource [
    (\"server-group\" => \"main-server-group\"),
    (\"deployment\" => \"sample.war\")
]"},
    "rolled-back" => true
}
  • How to solve the above error when trying to enable the application that is already assigned in the server-group?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.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.