解决:The content of element type "web-app" must match "(icon?display
Posted 辉辉太郎
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决:The content of element type "web-app" must match "(icon?display相关的知识,希望对你有一定的参考价值。
http://www.educity.cn/wenda/126463.html
解决:The content of element type "web-app" must match "(icon ,display-
错误: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 。。。。这段内容
以上是关于解决:The content of element type "web-app" must match "(icon?display的主要内容,如果未能解决你的问题,请参考以下文章
MyBaties 错误The content of elements must consist of well-formed character data or markup.
mybatis报:The content of element type must match xx
Cause: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character
hibernate配置文件 The content of element type "class" must match
Mybatis 异常: The content of elements must consist of well-formed character data or markup
ibatis动态sql配置启动时提示:The content of elements must consist of well-formed character data...