6 Replies Latest reply on May 20, 2014 5:23 AM by Tomaz Cerar

    JBoss 6.1/6.2 EAP - Domain Setup - Add SystemProperties fails through management API

    Oleg Koropita Newbie

      Hi all,

       

      I can't add SystemProperties through management API and CLI, when I am using composite operation.

      I am executing such request by ModelControllerClient:

       

      {

          "operation" => "composite",

          "address" => [],

          "steps" => [{

              "operation" => "add",

              "boot-time" => true,

              "value" => 7890,

              "address" => [

                  ("host" => "node02"),

                  ("server-config" => "system2-server1"),

                  ("system-property" => "TEST_PORT.2")

              ]

          }]

      }

      and get the result :

      {

          "outcome" => "failed",

          "result" => undefined,

         "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",

          "rolled-back" => true

      }

       

       

      The same result for composite operation through CLI:

       

      /:composite(steps=[{"operation"=>"add","boot-time" => true,"value" => 7890,"address"=>[("host" => "node02"),("server-config" => "system2-server1"),("system-property" => "TEST_PORT.2")]}])

      {

          "address" => [],

          "operation" => "composite",

          "steps" => [{

              "operation" => "add",

              "boot-time" => true,

              "value" => 7890,

              "address" => [

                  ("host" => "node02"),

                  ("server-config" => "system2-server1"),

                  ("system-property" => "TEST_PORT.2")

              ]

          }]

      }

      {

          "outcome" => "failed",

          "result" => undefined,

          "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",

          "rolled-back" => true

      }

       

       

      But, if I try to add SystemProperty through CLI command:

      /host=node02/server-config=system2-server1/system-property=TEST_PORT.2/:add(value=7890,boot-time=true)

      {

          "address" => [

              ("host" => "node02"),

              ("server-config" => "system2-server1"),

              ("system-property" => "TEST_PORT.2")

          ],

          "operation" => "add",

          "boot-time" => true,

          "value" => 7890

      }

       

      {

          "outcome" => "success",

          "result" => undefined,

          "server-groups" => undefined

      }

       

      Do you have any ideas?

       

      Thanks,

      Oleg