xxlali xxlali - 5 months ago 11
Java Question

Wildfly Clustering Does not work with web-fragment.xml

I am trying to setup a clustering environment with Wildfly-10.

I have a

web-fragment.xml
for general purpose configuration and a
web.xml
for project specific configuration. With these configurations, clustering does not work.

But if I delete
web-fragment.xml
and move its content to
web.xml
, everything works fine.

I wonder what is the reason of this. Any idea?

Answer

Placing </distributable> tag to both web.xml and web-fragment.xml has solved the problem.