web-app_2_5.xsd 在 eclipse 中验证 web.xml时显示错误
2022-09-03 00:57:22
我不知道我能做些什么来造成这种情况,因为我花在编程上的时间已经捉襟见肘,我已经忘记了我可能做了什么。但是现在当我加载Eclipse时,它说:
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.
我的前几行网络.xml看起来像这样。
<?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 网址,而我还没有找到它。
任何想法将不胜感激。