首页 > 移动平台 > 详细

xml之解决The content of element type "web-app" must match "(icon?,display......方案

时间:2014-04-14 21:04:57      阅读:618      评论:0      收藏:0      [点我收藏+]
错误: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 。。。。这段内容

xml之解决The content of element type "web-app" must match "(icon?,display......方案,布布扣,bubuko.com

xml之解决The content of element type "web-app" must match "(icon?,display......方案

原文:http://blog.csdn.net/zkn_cs_dn_2013/article/details/23670647

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!