The content of element type "web-app" must match "
来源:互联网 发布:大闹宠物进阶数据 编辑:程序博客网 时间:2024/05/18 00:29
导入工程,eclipse中报错:
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*)".
问题原因:web.xml中可能顺序不对,比如servlet和servlet-mapping交叉出现或者filter和filter-mapping交叉
参考http://stackoverflow.com/questions/5712906/getting-error-the-content-of-element-type-web-app-must-match
解决方法有两种:
1.调整web.xml中节点顺序,先servlet再servlet-mapping(filter同理)
2.关闭eclipse中xml校验,步骤:Windows-Preference-Validation,disable all,apply再OK
0 0
- 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
- 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 "(icon?,display
- 解决The content of element type "web-app" must match "(icon?,display
- 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……问题之解决办法
- 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……问题之解决办法
- The content of element type "web-app" must match……等 问题之解决办法
- The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,c
- SpringMVC+idea中web.xml文件的The content of element type "web-app" must match问题
- Swagger--连接前后端的通道
- linux内存管理
- 变量只能在定义时被初始化
- 2016年值得关注的大数据存储管理技术
- 超简单安卓多渠道打包-gradle篇
- The content of element type "web-app" must match "
- 杭电OJ A+B for Input-Output Practice (IV)
- Java金额数字转中文大写
- hash 分表
- iOS 开发 车牌识别
- Docker 网络学习笔记
- 继承和派生1
- Linux源代码目录
- 11年福州 G 迭代加深+强剪枝 HDU 4127