eclipse找不到架构

用户名

当我在Ubuntu 10.4上的Eclipse Kepler中编译项目时,收到以下错误消息:

cvc-elt.1: Cannot find the declaration of element 'web-app'.

web-app元素如下所示:

<web-app 
  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"
  xmlns="http://xmlns.jcp.org/xml/ns/javaee">

据我所知,URL在起作用,我可以下载web-app_3_1.xdf文件(使用代理通过wget从命令行从命令行下载),但是编译失败。您知道如何解决吗?我已经检查了先前的问题和答案,但是我没有在Eclipse中看到任何选项来关闭缓存。另外,在Eclipse中已正确配置了代理,至少我能够下载并安装GWT。

克休斯

尝试从中的名称空间删除尾部斜杠xsi:schemaLocation

改变

xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee/ http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"

xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"

以便与xmlns属性完全匹配

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章