简体   繁体   English

如何在 Tomcat 9 中找到 xml.xsd

[英]How to find xml.xsd in Tomcat 9

I'm following the Java EE Tutorial 2021 by Derek Banas and have run into a problem.我正在关注 Derek Banas 的 Java EE 教程 2021,但遇到了一个问题。 Starting Tomcat 9 server gives long console output in red but I can't find any specific error listed.启动 Tomcat 9 服务器以红色提供长控制台输出,但我找不到列出的任何特定错误。 The final line is INFO: Server startup in [555] milliseconds.最后一行是 INFO: Server startup in [555] 毫秒。 I do have an error in the Tomcat web-xml file that I do not know how to fix.我在 Tomcat web-xml 文件中确实有一个我不知道如何修复的错误。

"Multiple annotations found at this line: - There is '1' error in 'javaee_7.xsd'. - schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/www.w3.org/2001/xml.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." “在这一行发现多个注释:-'javaee_7.xsd' 中存在 '1' 错误。-schema_reference.4:无法读取架构文档 'platform:/plugin/org.eclipse.xsd/cache/www.w3。 org/2001/xml.xsd',因为 1) 找不到文档;2) 无法读取文档;3) 文档的根元素不是 xsd:schema。”

I've managed to successfully complete the tutorial even with the tomcat web-xml file error.即使出现了 tomcat web-xml 文件错误,我也成功完成了本教程。 Not sure why everything works, but I'm glad it does.不知道为什么一切正常,但我很高兴它确实如此。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM