Why does the directory grouping changes of empty servers tag does not persist in host.xml ?
Issue
-
There is an issue with the
directory-grouping
configuration. Following are the steps how to reproduce this behaviour:- Started JBoss in domain mode.
- Removed the default servers as follows:
/host=master/server-config=server-one/:stop /host=master/server-config=server-one/:remove /host=master/server-config=server-two/:stop /host=master/server-config=server-two/:remove /host=master/server-config=server-three/:stop /host=master/server-config=server-three/:remove
- Edited the
directory-grouping
configuration from"by-server"
to"by-type"
.
/host=master/:write-attribute(name=directory-grouping,value=by-type)
- Then added a new server to the configuration, now the
directory-grouping
attribute will be again set as"by-server"
( which is by default value) and not"by-type"
. So when all the servers are removed, then thedirectory-grouping
attribute setting is lost. - Also noticed that when all the predefined servers are removed, then the
<servers>
tag is not present anymore in thehost.xml
.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.