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

Brian Stansberry brian.stansberry at redhat.com
Thu May 19 09:45:10 EDT 2011


On 5/19/11 7:37 AM, ssilvert at redhat.com wrote:
> 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\")
> ]"}
> }
>

Your CLI path is backwards. Should be

/server-group=main-server-group/deployment=beanvalidation.war:add

>
> 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
>>
>
>
>
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat


More information about the jboss-as7-dev mailing list