본문 바로가기
개발/java

web.xml xsi:schemaLocation 에러

by 황태고블린 2021. 11. 24.

2.3을 사용하다가 3.1로 변경하면서 나온 에러메시지

web-app_3_1.xsd 부분의 버전을 없에버리고 해결

 

에러메시지

schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/
 www.w3.org/2001/xml.xsd', because 1) could not find the document; 2) the document could not be 
 read; 3) the root element of the document is not <xsd:schema>

 

수정전

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">

 

수정후

<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app.xsd"
version="3.1">

댓글