This content has been marked as final.
Show 1 reply
-
1. Re: Deployment/Undeployment using if-else control flow in JBoss-cli ...
bhaveshbhagat4 Jun 27, 2013 9:45 AM (in response to bhaveshbhagat4)Found the solution:
Tried running the undeploy command without if-else control and got following exception:
[domain@localhost:9999 /] undeploy hello.war
Undeploy failed: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS010861: Cannot remove deployment hello.war from the d omain as it is still used by server groups [DEVGroup]"}}
[domain@localhost:9999 /]
That said, while undeploying application, "--all-relevant-server-groups" MUST be specified. After providing that argument, the control worked as expected.
Thank you!