Java Reference
In-Depth Information
You are not limited to a single server group, and you can separate multiple server
groups with a comma ( , ). For example:
[domain@localhost:9999 /] deploy
application.ear
--server-groups=main-server-group,other-server-group
Successfully deployed application.ear
Tab completion will help complete the value for the list of --server-groups selec-
ted for deployment.
Now, suppose we want to undeploy the application from just one server group. There
can be two possible outcomes. If the application is available just on that server
group, you will successfully complete the undeployment:
[domain@localhost:9999 /] undeploy
as7project.war --server-groups=main-server-group
Successfully undeployed as7project.war.
On the other hand, if your application is available on other server groups, the follow-
ing error will be returned by the CLI:
Undeploy failed: {"domain-failure-description"
=> {"Composite operation failed and was rolled
back. Steps that failed:" => {"Operation
step-3" => "Cannot remove deployment
as7project.war from the domain as it is still
used by server groups [other-server-group]"}}}
It seems that something went wrong. As a matter of fact, when you are removing an
application from a server group, the domain controller checks that the application is
not referenced by any other server group, otherwise the previous command will fail.
You can however, instruct the domain controller to undeploy the application without
deleting the content also, as shown in the following command:
Search WWH ::




Custom Search