본문 바로가기

java spring

web.xml 파일에서 빨간줄 오류 해결

web.xml에서 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에서 상단 web-app 관련 부분 http://java.sun.com 명시된 부분들을

http://JAVA.sun.com이나 http://Java.sun.com으로 변경해주면 해결됨.

 

<?xml version="1.0" encoding="UTF-8"?>
<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">

 

위 문단 둘째줄 하나만 java를 Java로 바꿔도 해결됨