[undertow-dev] CLI can add a <host> element without alias attribute (server will not restart after that)
Wolf-Dieter Fink
wfink at redhat.com
Tue Apr 9 09:36:03 EDT 2013
Hi,
not sure whether this should be posted here ...
I've used the current AS8 (upstream) where undertow replace the web
subsystem.
With the CLI sequence [1] an invalid profile configuration can be added
and the next server start will stop with an error message [2] because
the 'alias' must be set.
I think this will be a bug but not sure for which component, I suppose
the subsystem is responsible to check that, right?
- Wolf
[2]
[Host Controller] 15:15:06,868 ERROR [org.jboss.as.host.controller]
(Controller Boot Thread) JBAS010932: Caught exception during boot:
org.jboss.as.controller.persistence.ConfigurationPersistenceException:
JBAS014676: Failed to parse configuration
...
[Host Controller] Message: "JBAS014704: '' is an invalid value for
parameter alias. Values must have a minimum length of 1 characters"
[1]
/profile=default-web/subsystem=undertow:add
/profile=default-web/subsystem=undertow/worker=default:add(io-threads=3,
task-core-threads=12)
/profile=default-web/subsystem=undertow/buffer-pool=default:add(buffer-size=2048,
buffers-per-slice=512)
/profile=default-web/subsystem=undertow/server=default-server:add()
/profile=default-web/subsystem=undertow/server=default-server/http-listener=default:add(socket-binding=http)
/profile=default-web/subsystem=undertow/server=default-server/ajp-listener=ajp-connector:add(socket-binding=ajp)
/profile=default-web/subsystem=undertow/server=default-server/host=default-host:add
#/profile=default-web/subsystem=undertow/server=default-server/host=default-host:add(alias=["localhost"])
/profile=default-web/subsystem=undertow/server=default-server/host=default-host/location="/":add
# HINT: it might happen that the cache-buffer attributes are not written
as the default is 1024 !
/profile=default-web/subsystem=undertow/server=default-server/host=default-host/location="/"/handler=file:add(path="${jboss.home.dir}/welcome-content",cache-buffers=1024,cache-buffer-size=1024)
/profile=default-web/subsystem=undertow/servlet-container=default:add
/profile=default-web/subsystem=undertow/servlet-container=default/setting=jsp:add
More information about the undertow-dev
mailing list