본문 바로가기
ETC/오류해결

web.xml cvc-id.3 에러 해결

by heekng 2021. 5. 16.
반응형

web.xml에서 cvc-id.3: Afield of identity constraint 'web.app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type.

위 에러 발생시

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

web-app 태그의 sci:schemaLocation 의 java를 Java 대문자로 변경하면 해결된다.

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://Java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

 

반응형