Description:
|
Running the following script fails on a freshly installed AS 7.1.1.FINAL
running in domain mode
. {noformat} connect /host=master/server-config=test1:add(group=main-server-group,auto-start=true,socket-binding-port-offset=0) /host=master/server-config=test2:add(group=main-server-group,auto-start=true,socket-binding-port-offset=100) /host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200) /host=master/server-config=test4:add(group=main-server-group,auto-start=true,socket-binding-port-offset=300) {noformat}
The output looks like this:
{noformat} kalle@elvira:~/tmp/jboss-as-7.1.1.Final/bin$ ./jboss-cli.sh --file=/home/kalle/tmp/bug_script.txt {"outcome" => "success"} {"outcome" => "success"} '/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)' is not a valid operation name. kalle@elvira:~/tmp/jboss-as-7.1.1.Final/bin$ {noformat}
The first two servers are created but the third fails. If I do the same interactively, it also fails, but if I then add the "test4" server-config, it will be created successfully. Output below: {noformat} kalle@elvira:~/tmp/jboss-as-7.1.1.Final/bin$ ./jboss-cli.sh You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands. [disconnected /] connect [domain@localhost:9999 /] /host=master/server-config=test1:add(group=main-server-group,auto-start=true,socket-binding-port-offset=0) {"outcome" => "success"} [domain@localhost:9999 /] /host=master/server-config=test2:add(group=main-server-group,auto-start=true,socket-binding-port-offset=100) {"outcome" => "success"} [domain@localhost:9999 /] /host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200) '/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)' is not a valid operation name. [domain@localhost:9999 /] /host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200) '/host=master/server-config=test3:add(group=main-server-group,auto-start=true,socket-binding-port-offset=200)' is not a valid operation name. [domain@localhost:9999 /] /host=master/server-config=test4:add(group=main-server-group,auto-start=true,socket-binding-port-offset=300) {"outcome" => "success"} [domain@localhost:9999 /] {noformat}
|