【发布时间】:2014-08-25 18:39:51
【问题描述】:
我正在使用 Spring 3、Apache-maven-3.2.2、Apache-tomcat-7.0.54。
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
id="WebApp_ID" version="2.5">
编译时出错
Multiple annotations found at this line:
- cvc-elt.1: Cannot find the declaration of element 'web-app'.
- schema_reference.4: Failed to read schema document 'http://java.sun.com/xml/ns/javaee/web-app_2_5.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>.
【问题讨论】:
标签: java xml eclipse spring maven