The content of element type "web-app" must match……问题之解决办法
来源:互联网 发布:淘宝怎样找人代发货 编辑:程序博客网 时间:2024/05/16 00:51
转载自:http://blog.163.com/liwei3324@126/blog/static/47452426201041435525524/
在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……问题之解决办法
- 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……问题之解决办法
- 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
- xml之解决The content of element type "web-app" must match "(icon?,display......方案
- SpringMVC+idea中web.xml文件的The content of element type "web-app" must match问题
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- web.xml配置bug之提示The content of element type "web-app" must match "(icon?,display- name?,description?,
- 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 "(icon?,display
- 解决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?,c
- 浅谈触摸屏技术以及未来的发展趋势
- String构造函数,析构函数和赋值函数
- linux防火墙打开某些端口
- UML-概念类图(Conceptual Class Diagram / Domian Model)
- POJ 1755 半平面交
- The content of element type "web-app" must match……问题之解决办法
- POSIX多线程不常见死锁案例
- JavaSE15_JDBC编程之JDBC驱动的四种类型
- Myeclipse 内存溢出设置ini文件无效如何解决
- opencv的assert函数
- android操作sdcard
- QT 应用程序之计算器
- C/C++笔试忍法帖01——系统篇
- 微信的研究