weblogic部署異常: cvc-enumeration-valid: string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:


 

嘗試使用weblogic部署一個Demo應用,在選擇應用目錄后,報出下面的異常:

VALIDATION PROBLEMS WERE FOUND problem: cvc-enumeration-valid:

string value '3.0' is not a valid enumeration value for web-app-versionType in namespace http://java.sun.com/xml/ns/javaee:<null>

3.0不是命名空間為'http://java.sun.com/xml/ns/javaee'的web-app版本的一個有效值。

原因:

在創建project時選擇了java EE 6.0,但是java EE 6.0的使用的xml Schema之一是web-app_3.0.xsd。

然而weblogic支持的是java EE 5.0,使用的xml Schema之一是web-app_2_5.xsd。

 

解決方法:

將web.xml中的<web-app version="3.0"> 改為<web-app version="2.5">


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 Description Resource Path Location Type cvc-attribute.3: The value '3.1' of attribute 'version' on element 'web-app' is not valid with respect to its type, 'web-app-versionType'. web.xml /taotao-manag 【解決方案】cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-r Error while downloading 'http://java.sun.com/xml/ns/javaee/javaee_web_services_client_1_2.xsd' cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://java.sun.com/xml/ns/javaee":init-param}' is expected. Referenced file contains errors (http://JAVA.sun.com/xml/ns/j2ee/web-app_2_5.xsd). shiro中async-supported報錯 cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://java.sun.com/xml/ns/ javaee":init-param}' is expected. 無法在web.xml或使用此應用程序部署的jar文件中解析絕對uri:[http://java.sun.com/core] The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml Servlet[jsp]的Servlet.service()引發了具有根本原因的異常無法在web.xml或使用此應用程序部署的jar文件中解析絕對uri:[http://java.sun.com/jsp/jstl/core] The absolute uri: [http://java.sun.com/jsp/jstl/core] cannot be resolved in either web.xml or the jar files deployed with this application] with root cause異常處理及解釋
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM