WFLYUT0087 error when configuring multiple hosts with unspecified default web module in the EAP 7.1

Solution Verified - Updated -

Issue

The following configuration is working fine in JBoss EAP 7.0:

<host name="www.host1.com" alias="alias1">
    <filter-ref name="server-header"></filter>
    <filter-ref name="x-powered-by-header"></filter>
</host>
<host name="www.host2.com" alias="alias2">
    <filter-ref name="server-header"></filter>
    <filter-ref name="x-powered-by-header"></filter>
</host>

but when upgraded to JBoss EAP 7.1, the following error is seeing in the host configuration.:

ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 40) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "undertow"),
    ("server" => "default-server"),
    ("host" => "www.host2.com")
]): java.lang.IllegalArgumentException: WFLYUT0087: Duplicate default web module 'ROOT.war' configured on server 'default-server', host 'www.host2.com'

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.