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

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-ref name="x-powered-by-header"/>
</host>
<host name="www.host2.com" alias="alias2">
    <filter-ref name="server-header"/>
    <filter-ref name="x-powered-by-header"/>
</host>

but the following error is seeing in the host configuration after upgrading to JBoss EAP 7.1.x/7.2.x:

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.x
    • 7.2.x

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