Update to my issue
I was also sending the runtime-name which was fine previously,
but which now seems to indicate that I want to add the content to /deployment too
Am 19.05.2011 um 15:45 schrieb Brian Stansberry:
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
>
> 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
--
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