문제

 

이클립스의 Spring 프로젝트 내의 web.xml 에러가 발생했다.

 

Eclipse> 편집기에서 마우스를 대보면

 

 

Eclipse> 윈도우> Markers 에서 보면

 

Description 
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.

Resource 

web.xml

Path  

/spring00/src/main/webapp/WEB-INF

Location

line 34

Type

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

부분에서 

 

xmlns="http://java.sun.com/xml/ns/javaee" 의

java를 Java 또는 JAVA로 변경하면 해결된다.

xmlns="http://Java.sun.com/xml/ns/javaee"  또는

xmlns="http://JAVA.sun.com/xml/ns/javaee" 로 변경하면 해결된다.

 

 

 출처

 

stackoverflow

https://stackoverflow.com/questions/3219639/cvc-id-3-error-in-web-xml

 

 

+ Recent posts