关于web.xml中<web-app>错误提示的解决办法
来源:互联网 发布:js鼠标滚动距离 编辑:程序博客网 时间:2024/05/21 22:26
问题:在Java Web 编程时,需要配置web.xml,但有时会出现如下错误提示:
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-app_2_3.dtd规范
解决办法:1.检查标签的顺序是否按照错误提示中的标签顺序写的,按照它提示的顺序来调整标签顺序就可以了。
2. 或者直接删除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">
- 关于web.xml中<web-app>错误提示的解决办法
- web.xml中提示错误The content of element type "web-app" must match
- xml中配置整个web的错误提示
- web.xml中<web-app>出现有错误
- 关于web.xml中<web-app>报错解决方案
- 关于web.xml中<web-app>报错解决方案
- 关于web.xml中<web-app>报错解决方案
- 关于web.xml中<web-app>报错解决方案
- taglib web.xml提示错误
- web.xml中<web-app>报错
- Servlet下的web.xml报的错误 解决办法
- 配置web.xml时,提示错误
- 关于Myeclipse10中建立web工程添加spring配置文件出现红叉错误提示的问题
- 关于web.xml中元素的问题
- 关于在eclipse中创建servlet不能自动添加web.xml文件的解决办法
- Log4J配置错误 web.xml中关于log4j的设置及范例说明
- 关于Struts2在web.xml中配置后出现404错误的问题,完美解决方案!
- 关于flex和spring+hibernate整合web.xml的错误
- 时间函数用法
- CentOS系统安装Tomcat切换JDK的方法
- java中常用字符串截取方法
- 缓存总述
- Eclipse中应该掌握的快捷键
- 关于web.xml中<web-app>错误提示的解决办法
- ACE Synchronization类
- JBOSS使用点滴
- Android振动器(Vibrator)系统详解
- LIB和DLL的区别与使用
- varnish工作原理详细讲解
- HOOK使用:全局键盘钩子
- mini2440烧写裸机程序(MDK+Jlink)
- 菜鸟日记(2013-5-8)-关于两句SQL语句得到的启示