web.xml 报错The content of element type "web-app" must match
来源:互联网 发布:网络授权查询系统 编辑:程序博客网 时间:2024/05/18 02:33
错误:The content of element type "web-app" must match "(icon?,display-
name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-
mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-
ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
- No grammar constraints (DTD or XML schema) detected for the document.
web.xml头部配置:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
原因:文档内容标签顺序不符合web-app_2_3.dtd规范
解决方案
1:严格按照提示上的顺序排列
2:删除<!DOCTYPE 。。。。这段内容
以上内容转自:http://jyao.iteye.com/blog/1263650
ps:
上文中所说的删除<!DOCTYPE,其实是不用的。当你的配置不符合web.xml的dtd规范时,删除这些内容才有能解决报错的问题。
通常情况下,如果按照web.xml的标准配置是不用修改头信息的,而且头的dtd校验的存在也是有必要的。
- web.xml 报错The content of element type "web-app" must match
- 解决web.xml 报错The content of element type "web-app" must match
- The content of element type "web-app" must match "
- The content of element type "web-app" must match
- web.xml The content of element type "web-app" must match "
- web.xml中提示错误The content of element type "web-app" must match
- xml之解决The content of element type "web-app" must match "(icon?,display......方案
- SpringMVC+idea中web.xml文件的The content of element type "web-app" must match问题
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- The content of element type "web-app" must match……问题之解决办法
- 解决The content of element type "web-app" must match "(icon?,display
- 解决The content of element type "web-app" must match "(icon?,display
- The content of element type "web-app" must match……问题之解决办法
- The content of element type "web-app" must match……问题之解决办法
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- The content of element type "web-app" must match……问题之解决办法
- 【Java】进程和线程的区别
- Matlab绘图——Draw ROC Curve
- springMVC提交表单绑定到对象
- Unity 5面世,功能系统全升级
- C语言 内存分配 地址 指针 数组 参数 实例解析
- web.xml 报错The content of element type "web-app" must match
- unix基础
- sql优化 提高性能
- 【php中的curl】php中curl的使用
- 次奥,搞定奇怪bug
- C++之领悟const常量
- Mtk WIFI常用调试命令
- VS2010常用快捷键及修改
- linux sqlite3移植