错误问题:The content of element type "servlet" must match "(icon?,servlet-name,display-name?,description?,(servlet-class|jsp-file),init-param*,load-on-startup?,run-as?,security-role-ref*)".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文档内容标签顺序不符合web-app_2_3.dtd规范

解决方案:删除web.xml头部信息<!DOCTYPE web-app PUBLIC
 "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
 "http://java.sun.com/dtd/web-app_2_3.dtd" >

java项目问题 The content of element type servlet must match (icon?,servlet-name,display-name?,descrip相关推荐

  1. The content of element type web-app must match……等 问题之解决办法

    在flex整合Java生成的web.xml中添加引用servelet的代码就报错如下: The content of element type "web-app" must mat ...

  2. mybatis项目启动报错 The content of element type resultMap must match (constructor?,id*,result*,associat...

    启动项目报错 2018-02-26 17:09:51,535 ERROR [org.springframework.web.context.ContextLoader] - Context initi ...

  3. The content of element type “mapper“ must match “EMPTY“.错误

    <mappers><mapper resource="cn/java/dao/impl/xxx.xml"></mapper></mappe ...

  4. The content of element type configuration must match (properties?,setting

    在运行mybatis配置文件的时候,出现错误: [html]  view plain  copy Caused by: org.xml.sax.SAXParseException: The conte ...

  5. arse Error at line 58 column 17: The content of element type struts-config must match (display-na

    以前没有接触过struts1的项目  刚上来开发公司来的项目的时候遇到的这个错误. 报错信息: 严重: Parse Error at line 58 column 17: The content of ...

  6. namespace 或The content of element type mapper must match EMPTY

    必须为元素类型 "mapper" 声明属性 "namespace" 或The content of element type "mapper" ...

  7. The content of element type configuration must match (properties?,settings?,typeAliases?,typeHand...

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC & ...

  8. 在xml文件中使用typeAliases标签报错The content of element type “configuration“ must match “(properties?,setting

    typeAliases标签:为Java 类型设置一个短的名字/别名 这里的错误提示:(properties?,settings?,typeAliases?,typeHandlers?,objectFa ...

  9. mapper.xml报异常The content of elhe content of element type mapper

    The content of element type "mapper" must match "(cache-ref|cache|resultMap*|paramete ...

最新文章

  1. 一个android记事本的学习过程记录! (一)
  2. 深入学习python内存管理
  3. pyqt5教程10:Widgets2组件
  4. DataGrip 2019.2.5 —— 中文列名(字段名)(columns name)乱码问题解决方案
  5. 更改环境变量JAVA_HOME无效
  6. 2018刑侦推理 java_2018年刑侦科目推理试题
  7. MySQL授权命令grant的使用方法
  8. x265与SVT-HEVC现已合二为一
  9. caffe cifar10试跑问题总结
  10. 360安全卫士电脑版_教你降服“流氓头子”正确打开360安全卫士的姿势,还你电脑流畅体验...
  11. 25个优秀的设计机构网站设计案例
  12. Galaxy s4怎么安装一个预装软件的签名不一致的新版本
  13. python json序列化对象_Python学习之json序列化
  14. 使用arcgis、matlab与R语言GD包进行地理探测器 批量运行,并导出探测结果
  15. 万用表测试软件,万用表的使用入门 虚拟仿真实验教学软件
  16. 学习Java,你能做这些工作:
  17. 给视频加水印的软件有哪些?推荐两种软件快速加水印
  18. 80+的AI音频工具你值得拥有
  19. mkdir cd 创建并进入文件夹,创建并进入目录,只写一遍目录名, `$_`获取最后一个参数, 笔记221108
  20. Algorithm算法

热门文章

  1. 基于LSI的 职位描述JD 匹配
  2. 小程序 数据库 时间_我用两天时间搭了一个领外卖红包的小程序
  3. 英语单词相见恨晚的学习方法(一)
  4. 容水度、持水度、给水度
  5. LeetCode刷题之二分
  6. 不用编程超简单的自动化测试工具:Airtest安装使用入门篇
  7. PACS HIS DICOM以及相关
  8. bootstrap富文本编辑器的使用
  9. LOTO示波器配合VI曲线测试仪在电路板维修中的应用
  10. 达林顿复合管的原理与使用