[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*)".
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*)".
원인은 web-app의 자식 element들은 나름 순서대로 적어줘야 하는데 이 순서를 지키지 않아서 발생
순서는 에러메세지 순서와 같다.
1. icon
2. display-name
3. description
4. distributable
5. context-param
6. filter
7. filter-mapping
8. listener
9. servlet
10. servlet-mapping
11. session-config
12. mime-mapping
13. welcome-file-list
14. error-page
15. taglib
16. resource-env-ref
17. resource-ref
18. security-constraint
19. login-config
20. security-role
21. env-entry
22. ejb-ref
23. ejb-local-ref
댓글
댓글 쓰기