web.xml报错:The content of element type "web-app" must match "(icon?,display-name?,description?...

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/chenbetter1996/article/details/82825363

web.xml的<web-app>节点位置报错:

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*)".

一般里面的配置没错的话,就算顺序错误了,按照错误信息给出的每个子标签的顺序排序即可(应该是安装字母排序)

这里的<filter>比<listener>应该要前才对。

换过来就对了。

猜你喜欢

转载自blog.csdn.net/chenbetter1996/article/details/82825363