g 프로젝트를 진행할 때 다른 사람의 프로젝트 import 시 가끔 아래의 에러가 뜨는 경우가 있다.
내 경우에는 아래와 같은 방법으로 해결하였다.
Description Resource Path Location Type
cvc-id.3: A field of identity constraint 'web-app-filter-name-uniqueness' matched element 'web-app', but this element does not have a simple type. web.xml /test_project/src/main/webapp/WEB-INF line 41 Language Servers
Description Resource Path Location Type
cvc-id.3: A field of identity constraint 'web-app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type. web.xml /test_project/src/main/webapp/WEB-INF line 26 Language Servers
Description Resource Path Location Type
There are '37' errors in 'jsp_2_1.xsd'. web.xml /test_project/src/main/webapp/WEB-INF line 2 Language Servers
web.xml 파일의
<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"
metadata-complete="true">
부분을
<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"
metadata-complete="true">
이렇게 변경해주면 해결 된다.
변경 전
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
변경 후
xsi:schemaLocation="http://JAVA.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"