[오류] WFLYUT0087: Duplicate default web module 'ROOT.war' configured on server 'default-server'Server TO(Technical Operation)2018. 7. 11. 15:12
      Table of Contents
        반응형
    
    
    
  
WFLYUT0087:
Duplicate default web module 'ROOT.war' configured on server 'default-server'
ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 69) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "undertow"),
    ("server" => "default-server"),
    ("host" => "admin")
]): java.lang.IllegalArgumentException: WFLYUT0087: Duplicate default web module 'ROOT.war' configured on server 'default-server', host 'admin'{jboss.server.base.dir}/configuration/standalone-ha.xml
conf 파일에서 <host> 부분에 virtual-host name 'admin' 을 추가하여 context root path '/' 로 설정하여 wildfly 재시작시, WFLYUT008 오류 발생된다.
원인 : 해당 모듈을 찾지 못해서 발생되는 문제
<subsystem xmlns="urn:jboss:domain:undertow:6.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other">
    <buffer-cache name="default" />
    <server name="default-server">
        <ajp-listener name="ajp" socket-binding="ajp" />
        <http-listener name="default" socket-binding="http" record-request-start-time="true" redirect-socket="https" enable-http2="true" />
        <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true" />
        <host name="default-host" alias="localhost">
            <location name="/" handler="welcome-content" />
            <http-invoker security-realm="ApplicationRealm" />
        </host>
        <host name="admin" alias="localhost">
            <location name="/" handler="welcome-content" />
            <http-invoker security-realm="ApplicationRealm" />
        </host>
    </server>
    <servlet-container name="default">
        <jsp-config/>
        <websockets/>
    </servlet-container>
    <handlers>
        <file name="welcome-content" path="${jboss.home.dir}/welcome-content" />
    </handlers>
</subsystem>해결방법
1. default-host 의 <location> 태그 삭제
2. <host> 속성에 default-web-module="[war 파일 또는 폴더명]" 추가
<subsystem xmlns="urn:jboss:domain:undertow:6.0" default-server="default-server" default-virtual-host="default-host" default-servlet-container="default" default-security-domain="other">
    <buffer-cache name="default" />
    <server name="default-server">
        <ajp-listener name="ajp" socket-binding="ajp" />
        <http-listener name="default" socket-binding="http" record-request-start-time="true" redirect-socket="https" enable-http2="true" />
        <https-listener name="https" socket-binding="https" security-realm="ApplicationRealm" enable-http2="true" />
        <host name="default-host" alias="localhost">
            <!-- <location> remove -->
            <http-invoker security-realm="ApplicationRealm" />
        </host>
        <host name="admin" alias="localhost" default-web-module="contest.war">
            <location name="/" handler="welcome-content" />
            <http-invoker security-realm="ApplicationRealm" />
        </host>
    </server>
    <servlet-container name="default">
        <jsp-config/>
        <websockets/>
    </servlet-container>
    <handlers>
        <file name="welcome-content" path="${jboss.home.dir}/welcome-content" />
    </handlers>
</subsystem>오류가 사라졌습니다, 썩세스!!
@달끄 :: 코트슈
            코트슈(Code Troubleshooter) 프로그래머의 일상 Execution, Errors, Find, Solution 개발자들은 많은 오류로 시간을 허비한다... 코트슈가 도와드립니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!