Quoting Brian Stansberry <brian.stansberry(a)redhat.com>:
On 5/19/11 7:37 AM, ssilvert(a)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@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
This document
http://community.jboss.org/wiki/FormatOfADetypedOperationRequest
says, "The order in which the items appear in the request is not relevant."
Is order somehow important in the CLI but not in the API? Or is that
sentence referring to something other than the address?
In this case, how would I know the proper order?
In actuality, this really makes more sense:
/server-group=main-server-group/:add(deployment=beanvalidation.war)
>
> Quoting "Heiko W.Rupp"<hrupp(a)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(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>
>
>
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev