解决web.xml 报错The content of element type "web-app" must match
来源:互联网 发布:淘宝如何参加9.9包邮 编辑:程序博客网 时间:2024/05/09 18:35
错误: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" "">
<web-app>
原因:文档内容标签顺序不符合web-app_2_3.dtd规范
解决方案
1:严格按照提示上的顺序排列
2:删除<!DOCTYPE 。。。。这段内容
ps:最好按照标准顺序排列,删除不是常规方法(适合强迫症看到红叉受不了的银)
以上内容转自:http://jyao.iteye.com/blog/1263650
- 解决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......方案
- 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
- 解决The content of element type "web-app" must match "(icon?,display
- 解决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……问题之解决办法
- 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……问题之解决办法
- JQuery中表单验证相关的一些技巧
- C++中引用(&)的用法和应用实例
- the left operand of * is a garbage value
- github使用问题
- css实现多行文字与图片垂直水平居中
- 解决web.xml 报错The content of element type "web-app" must match
- 分布式与集群的区别
- 结构型模式之享元FLYWEIGHT
- Android Studio增加assets目录、raw目录
- POJ 2299 Ultra-QuickSort (树状数组)
- 自动化测试知识点笔记
- 开题报告会
- 将本地项目上传到oschina核心笔记
- Bioperl的安装(一)