min's devlog

[Spring] cvc-id.3: A field of identity constraint... 본문

Error Note

[Spring] cvc-id.3: A field of identity constraint...

값진 2022. 7. 26. 14:10

문제

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  

/Spring/src/main/webapp/WEB-INF

Location

line 80

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를

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

 

Comments