The content of element type web-app must match……等 问题之解决办法
在flex整合Java生成的web.xml中添加引用servelet的代码就报错如下:
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*)". eoso/WebRoot/WEB-INF web.xml line 5
添加的代码如下:
<servlet>
<servlet-name>downLoadServlet</servlet-name>
<display-name>downLoadServlet</display-name>
<servlet-class>jp.co.snjp.eos.web.odermanger.service.DownLoad</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>downLoadServlet</servlet-name>
<url-pattern>/download</url-pattern>
</servlet-mapping>
如果把添加的代码删掉,web.xml就正常了,不会显示错误。但是这段代码是flex下载调用服务端的servlet用的,必须添加。说明,网上都是说顺序问题,但我已经按照icon?,display-name?,description?,distributable等等这种顺序添加节点的,但还是错误。后来,我把 <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">这一段校验代码删掉,问题就解决了。原因是:我添加的那部分代码符合xml文档规范,但不符合web-app_2_3.dtd所定义的规范。
类似的问题 都可以这样解决
The content of element type web-app must match……等 问题之解决办法相关推荐
- 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 ...
- java项目问题 The content of element type servlet must match (icon?,servlet-name,display-name?,descrip
错误问题:The content of element type "servlet" must match "(icon?,servlet-name,display-na ...
- mapper.xml报异常The content of elhe content of element type mapper
The content of element type "mapper" must match "(cache-ref|cache|resultMap*|paramete ...
- namespace 或The content of element type mapper must match EMPTY
必须为元素类型 "mapper" 声明属性 "namespace" 或The content of element type "mapper" ...
- The content of element type configuration must match (properties?,settings?,typeAliases?,typeHand...
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC & ...
- MyBatis配置文件出现错误,已解决(The content of element type )
开始创建xml配置文件时,先把标签打出来,就出现了错误:The content of element type "configuration" must match (proper ...
- The content of element type “mapper“ must match “EMPTY“.错误
<mappers><mapper resource="cn/java/dao/impl/xxx.xml"></mapper></mappe ...
- The content of element type configuration must match (properties?,setting
在运行mybatis配置文件的时候,出现错误: [html] view plain copy Caused by: org.xml.sax.SAXParseException: The conte ...
- 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 ...
最新文章
- tf.io.gfile.glob 遍历文件
- LeetCode_Pascal's Triangle_杨辉三角形(Java实现)
- 【转载】【FS】FATFS文件系统介绍(未完待续........2018.4.1)
- 一千个不用 Null 的理由,你还用?
- mysql 附加数据库文件_mysql附加数据库文件
- Xamarin开发IOS笔记:切换输入法时输入框被遮住
- python排序-堆排序
- Spark中repartition和coalesce的区别与使用场景解析
- 微软鼠标测试软件,微软sculpt鼠标评测 | 微软sculpt人体工学无线鼠标评测_什么值得买...
- Java六种异常处理的陋习
- 部署asp.net mvc_在ASP.NET 2.0上部署ASP.NET MVC
- 王家林Spark 课程,蘑菇云,IMF真相
- css样式表的作用和意义,什么是CSS?
- linux系统查询服务器型号,Linux系统查看服务器型号
- 脱机使用计算机是什么意思,电脑脱机状态是什么意思
- mysql命令行参数
- 域渗透|NTLM 中继攻击
- echarts图表的内边距_echarts - 条形图grid设置距离绘图区域的距离
- 三维空间点集的最小外接矩形
- 老司机教你一步步删掉艳照