【发布时间】:2021-12-17 06:21:57
【问题描述】:
谁能帮帮我? 我正在使用 Apache Tomacat 10 在 Eclipse 2021-06 上创建一个新的动态 Web 项目。 我总是在 web.xml 中收到错误
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" 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_4.xsd">
<display-name>01Test</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>
标记:
- version="2.5
我该如何解决???我尝试下载Tomcat表单网站并通过Eclipse...使用Web模块4和5...但仍然有这个问题...
【问题讨论】:
-
请在生成的部署描述符文件中打开此错误的错误报告。
-
你从哪里得到
web-app元素中的id元素?我在任何地方都找不到对此的参考,而且我不相信它是有效的。
标签: eclipse tomcat servlets tomcat10