How to replace a war through CLI in EAP 6.x and 7.x?

Solution Verified - Updated -

Issue

  • The web-based administration UI allows replacing a war: if the deployment of the new war fails, the previous war is automatically redeployed.
  • The CLI appears to support only undeploying and deploying the war so if the deployment fails, the previous version is not put back.
  • Is it possible to replace a war through the CLI?
  • Since the ear with the same filename already exists in the content repository, I had used --force to deploy but it still threw the error.

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content