반응형
web.xml에서 cvc-id.3: Afield of identity constraint 'web.app-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type.
위 에러 발생시
<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">
web-app 태그의 sci:schemaLocation 의 java를 Java 대문자로 변경하면 해결된다.
<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">
반응형
'ETC > 오류해결' 카테고리의 다른 글
Jetbrain Intellij가 실행되지 않을 때 (0) | 2021.09.08 |
---|---|
[Spring] web.xml cvc-elt.1.a: Cannot find the declaration of element 'web-app' (0) | 2021.05.26 |
log4j.xml The file cannot be validated as the XML definition 오류 (0) | 2021.05.24 |
[Spring] Driver net.sf.log4jdbc.sql.jdbcapi.DriverSpy claims to not accept jdbcUrl 오류 (1) | 2021.05.17 |
[셀레니움,크롤링] 로컬에서 잘 되던 크롤링이 서버에서 안될때 (0) | 2021.04.25 |
[Tomcat] Starting Tomcat v8.5 Server at localhost 오류 (0) | 2021.02.06 |