]
Alexey Loubyansky closed WFLY-9262.
-----------------------------------
Resolution: Won't Fix
This issue is not relevant to me any more. Unless there are others seeing a reason to do
something about this, I'm closing it as "won't fix".
adding undertow using the cli requires a batch
----------------------------------------------
Key: WFLY-9262
URL:
https://issues.jboss.org/browse/WFLY-9262
Project: WildFly
Issue Type: Enhancement
Components: Web (Undertow)
Affects Versions: 11.0.0.Beta1
Reporter: Alexey Loubyansky
Assignee: Tomaz Cerar
Fix For: 12.0.0.Alpha1
Undertow appears to be the only subsystem now requiring a composite operation when it is
added to the domain management model using management operations from a management client,
e.g. cli.
The exact error is
{quote}
[standalone@embedded /] /subsystem=undertow:add
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0369: Required capabilities are
not available:
org.wildfly.undertow.host.default-server.default-host; Possible registration points
for this capability:
/subsystem=undertow/server=*/host=*
org.wildfly.undertow.server.default-server; Possible registration points for this
capability:
/subsystem=undertow/server=*
org.wildfly.undertow.servlet-container.default; Possible registration points for this
capability:
/subsystem=undertow/servlet-container=*",
"rolled-back" => true,
"response-headers" => {"process-state" =>
"reload-required"}
}
{quote}
The sequence that actually works is
{quote}
batch
/subsystem=undertow:add
/subsystem=undertow/buffer-cache=default:add
/subsystem=undertow/configuration=filter:add
/subsystem=undertow/configuration=handler:add
/subsystem=undertow/server=default-server:add
/subsystem=undertow/server=default-server/host=default-host:add(alias=["localhost"])
/subsystem=undertow/server=default-server/http-listener=default:add(socket-binding="http",redirect-socket="https",enable-http2="true")
/subsystem=undertow/servlet-container=default:add
run-batch
{quote}