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