\

새소식

오류해결

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

  • -
반응형

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">

 

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.