The content of element type "web-app" must match "
報錯資訊:
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 中標籤的順序不對,必須按照報錯資訊中標籤的順序進行,
常見的:filter等的標籤應放在servlet等標籤的前面
解決方法:
按照報錯資訊中括號的順序更改web.xml中標籤的順序就行了
ps: 如果有任何問題可以評論留言,我看到後會及時解答,評論或關注,您的鼓勵是我分享的最大動力
相關推薦
解決:The content of element type "web-app" must match "(icon?display
內容 param match filter res ros welcome local page http://www.educity.cn/wenda/126463.html 解決:The content of element type "web-app" must ma
web.xml中<web-app>提示The content of element type "web-app" must match "(icon?,display- name?,description?,distributable?,
session span text .com ble splay 錯誤 esc gin 錯誤:配置web.xml時,出現紅色叉叉,提示 The content of element type "web-app" must match "(icon?,display-
The content of element type "web-app" must match "
報錯資訊: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,list
web.xml中 web-app 報錯了--The content of element type "web-app" must match
web.xml中<web-app>報錯了--The content of element type "web-app" must match。真是活見鬼! 查完資料後發現,原來web-app_2_3.dtd規範有規定,裡面配置的內容要按照規定的順序來,如下:
The content of element type "web-app" must match……問題之解決辦法
轉載自:http://blog.163.com/[email protected]/blog/static/47452426201041435525524/ 在flex整合java生成的web.xml中新增引用servelet的程式碼就報錯如下: The
strus2配置strus.xml問題-The content of element type "package" must match "(result-types?,interceptors?
ngs ppi 需要 ML 問題 所有 -i app exc 搭建strus2項目,在配置strus.xml時候碰到了這個問題: The content of element type "package" must match "(result-types?,interce
寫hibernate.cfg.xml時報錯The content of element type "property" must match "(meta*,(column|formula)*,type?)".
原配置檔案是這樣的 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "htt
The content of element type "package" must match 。。。。。。
今天寫東東的時候,在struts。xml中的 配置預設action的時候,總是有錯,報異常如下: Caused by: The content of element type "package" must match "(result-types?,interceptors?,default-i
The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collect
The content of element type "resultMap" must match "(constructor?,id*,result*,association*,collect 轉載:https://blog.csdn.net/chenxing1990/ar
The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s
錯誤資訊 The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-stack?)". 我在做Spr
The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-r
struts.xml檔案報瞭如下錯誤 Multiple annotations found at this line: - The content of element type "package" must match "(result-types?,
maven專案報錯:cvc-elt.1: Cannot find the declaration of element 'beans'.
maven專案莫名其妙報錯:cvc-elt.1: Cannot find the declaration of element 'beans'. 解決辦法:右鍵maven專案,選擇maven -》update project... 重試幾次,或者重啟eclipse嘗試幾
An engine that classifies the content of a Reddit post: an application of Natural Language…
An engine that classifies the content of a Reddit post: an application of Natural Language Processing“white text on black background” by Lauren Peng on Uns
mybatis異常:The content of elements must consist of well-formed character data or markup的解決方法
今天做專案的時候,要加入選擇開始日期結束日期然後根據日期範圍刪選資料顯示出來的功能,於是我在mybatis的Mapper xml檔案中使用where語句寫了形如: select * from t_stuff where time < #{startTime} and time &g
thymeleaf 解析html時,出現 SAXParseException: The content of elements must consist of well-formed characte
00:46:32.733 [http-apr-8080-exec-7] ERROR o.t.templateparser.ErrorHandler - [THYMELEAF][http-apr-8080-exec-7] Fatal error during parsing
Decode and Verify the Signature of a Cognito JSON Web Key Token
After a user logs in, an Amazon Cognito user pool returns a JWT, which is a Base64-encoded JSON string that contains information about the user
The content of the adapter has changed but ListView did not receive a notification的解決方案
在開發過程中,使用ListView時,發現這個錯誤偶爾會出現。特別是做壓力測試的時候,不停的點選重新整理,更容易出現這個錯誤。 在網上找了一下關於這個問題的解決辦法,說的是直接備份一份資料來源,我根據
Adapter報錯:The content of the adapter has changed的解決
The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background
spring cvc-elt.1: Cannot find the declaration of element 'beans'解決辦法
今天在寫spring aop示例的時候,在spring.xml檔案中新增spring aop的schema後出現紅叉,spring配置檔案如下: <?xmlversion="1.0"encoding="UTF-8"?> <beansxmlns=
解決ListView的The content of the adapter has changed but ListView did not receive a notification崩潰問題
最近在寫一個聚合工具箱的時候,添加了滑動返回功能,使用ListView時(不要問我為啥不用recycleview,小工具嘛,主要是邏輯,頁面都是次要的),遇到如下崩潰問題 java.lang.IllegalStateException: The content of t