[jboss-as7-dev] How to add a deployment to a server group?

ssilvert at redhat.com ssilvert at redhat.com
Thu May 19 08:37:07 EDT 2011


Hmm.  This code is working for me from the console:

ModelNode operation = new ModelNode();
operation.get(ADDRESS).add("server-group", serverGroup);
operation.get(ADDRESS).add("deployment", deployment.getName());
operation.get(OP).set("add");

But if I do this from the CLI:

[domain at localhost:9999 /]  
/deployment=beanvalidation.war/server-group=main-server-group/:add
{
     "outcome" => "failed",
     "failure-description" => {"domain-failure-description" => "No  
handler for add at address [
     (\"deployment\" => \"beanvalidation.war\"),
     (\"server-group\" => \"main-server-group\")
]"}
}


Quoting "Heiko W.Rupp" <hrupp at redhat.com>:

> HI,
>
> there have been recent changes to the deployment handling
> so for /deployment there is now a sub element "content".
>
> The same structure seems to exist for
>
> /server-group=x/deployment=y too. When I :add I always get a   
> duplicate entry exception
>
> Is there an example available how this is supposed to work now?
>
>  Thanks
>        Heiko
>
> --
> Reg. Adresse: Red Hat GmbH, Technopark II, Haus C,
> Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
> Handelsregister: Amtsgericht München HRB 153243
> Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,   
> Charles Cachera
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>








More information about the jboss-as7-dev mailing list