Spring
[Spring] cvc-id.3
탈탈99
2022. 7. 24. 21:36
반응형
[에러]
spring 프로젝트를 만들던 중, 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-app 태그 부분의 xmlns의 java를
<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">
아래처럼 바꿔주면 된다. 즉, Java로 첫글자만 대문자로 바꿔주면 된다.
<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">
728x90
반응형