web.xml元素先后顺序

tomcat對web.xml的元素順序不作校驗,但jboss严格校验各元素的先后順序,只有元素順序正確,才可能部署成功。以下是web.xml的元素順序:

web.xml的元素順序:

 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* 

猜你喜欢

转载自enki-ding-yeah-net.iteye.com/blog/1063365