首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >web-app_2_5.xsd在eclipse中验证web.xml时显示错误

web-app_2_5.xsd在eclipse中验证web.xml时显示错误
EN

Stack Overflow用户
提问于 2011-01-27 20:33:30
回答 3查看 28.2K关注 0票数 17

我不知道我能做什么,因为我花在编程上的时间太长了,我已经忘记了我可能做了什么。但是现在,当我加载Eclipse时,它会说:

代码语言:javascript
复制
The errors below were detected when validating the file "web-app_2_5.xsd" via the file "web.xml".  In most cases these errors can be detected by validating "web-app_2_5.xsd" directly.  However it is possible that errors will only occur when web-app_2_5.xsd is validated in the context of web.xml. 
s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'JDK 6 XML-related APIs'.
The entity name must immediately follow the '&' in the entity reference.

我的前几行web.xml代码看起来是这样的。

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<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">

我读到这可能是一个服务器的错误,从哪里检索文件,或与缓存。我已经禁用并清除了缓存,据我所知,服务器和其他人使用的是一样的,除非他们切换到oracle.com url,而我还没有找到它。

任何想法都将不胜感激。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4816330

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档