gpt4 book ai didi

schema - 这个 web.xml 错误是什么意思?

转载 作者:行者123 更新时间:2023-12-04 00:41:11 24 4
gpt4 key购买 nike

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd">

Referenced file contains errors (http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd). For more information, right click on the message in the Problems View and select "Show Details..."



通过文件“web.xml”验证文件“web-app_2_5.xsd”时检测到以下错误。在大多数情况下,这些错误可以通过直接验证“web-app_2_5.xsd”来检测。但是,只有在 web.xml 的上下文中验证 web-app_2_5.xsd 时才会发生错误。

详细地说,我看到了一堆这样的:

s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than xs:appinfo and xs:documentation. Saw 'var _U="undefined";'

最佳答案

如果更换 j2ee来自 javaee ,它会正常工作。

编辑 :

<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

编辑:

了解与此错误相关的任何进一步信息。请关注 Link .您将在此处找到 Java EE 部署描述符 (web.xml) 的模式。

关于schema - 这个 web.xml 错误是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13437569/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com