web.xml The content of element type "web-app" must match "

来源:互联网 发布:windows pe 黑苹果 编辑:程序博客网 时间:2024/05/21 10:26
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*)".

从svn上下下来的代码,别人用的是myecplise6.5,我的是ecplise3.4 他们的机器上么有问题,我的报这个错误,dtd格式是这个2.3.dtd

<?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.xml的标签在2.3.dtd中必须按照上面的顺序来,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






原创粉丝点击