Why does the directory grouping changes of empty servers tag does not persist in host.xml ?
Issue
-
There is an issue with the
directory-groupingconfiguration. 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-groupingconfiguration 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-groupingattribute 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-groupingattribute 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
