728x90
web.xml에서 cvc-id.3: A field of identity constraint 'web-common-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type. 오류가 발생하였다. 실행에는 문제가 없지만 오류가 표시되는것이 거슬려 해결해보고자 했다.
해결방법
위의 오류는 web.xml 제일 상단의 web-app부분에서 발생하는 오류로 xsi:schemaLocation부분을 수정해주면 된다.
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
http://java.sun.com으로 명시된 부분을 http://Java.sun.com이나 http://JAVA.sun.com으로 고쳐주면 아주 손쉽게 오류를 해결할 수 있다.
xsi:schemaLocation="http://Java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
728x90