在过去几天尝试在Weblogic 12.2.1.3.0上部署war文件之后,我不断收到此错误:
Unable to access the selected application.
VALIDATION PROBLEMS WERE FOUND /domains/hnb_frtest/weblogic.utils.classloaders.GenericClassLoader@14809eda finder: weblogic.utils.classloaders.CodeGenClassFinder@494ac240 annotation: /WEB-INF/lib/tomcat-embed-jasper-9.0.12.jar!/META-INF/web-fragment.xml:18:3:18:3: problem: cvc-enumeration-valid: string value '4.0' is not a valid enumeration value for web-app-versionType in namespace http://xmlns.jcp.org/xml/ns/javaee
VALIDATION PROBLEMS WERE FOUND /domains/hnb_frtest/weblogic.utils.classloaders.GenericClassLoader@14809eda finder: weblogic.utils.classloaders.CodeGenClassFinder@494ac240 annotation: /WEB-INF/lib/tomcat-embed-jasper-9.0.12.jar!/META-INF/web-fragment.xml:18:3:18:3: problem: cvc-enumeration-valid: string value '4.0' is not a valid enumeration value for web-app-versionType in namespace http://xmlns.jcp.org/xml/ns/javaee
VALIDATION PROBLEMS WERE FOUND /domains/hnb_frtest/weblogic.utils.classloaders.GenericClassLoader@14809eda finder: weblogic.utils.classloaders.CodeGenClassFinder@494ac240 annotation: /WEB-INF/lib/tomcat-embed-jasper-9.0.12.jar!/META-INF/web-fragment.xml:18:3:18:3: problem: cvc-enumeration-valid: string value '4.0' is not a valid enumeration value for web-app-versionType in namespace http://xmlns.jcp.org/xml/ns/javaee
Unable to access the selected application.
VALIDATION PROBLEMS WERE FOUND /domains/hnb_frtest/weblogic.utils.classloaders.GenericClassLoader@7e1a4876 finder: weblogic.utils.classloaders.CodeGenClassFinder@37fb545a annotation: /WEB-INF/lib/tomcat-embed-websocket-9.0.12.jar!/META-INF/web-fragment.xml:18:3:18:3: problem: cvc-enumeration-valid: string value '4.0' is not a valid enumeration value for web-app-versionType in namespace http://xmlns.jcp.org/xml/ns/javaee
VALIDATION PROBLEMS WERE FOUND /domains/hnb_frtest/weblogic.utils.classloaders.GenericClassLoader@7e1a4876 finder: weblogic.utils.classloaders.CodeGenClassFinder@37fb545a annotation: /WEB-INF/lib/tomcat-embed-websocket-9.0.12.jar!/META-INF/web-fragment.xml:18:3:18:3: problem: cvc-enumeration-valid: string value '4.0' is not a valid enumeration value for web-app-versionType in namespace http://xmlns.jcp.org/xml/ns/javaee
VALIDATION PROBLEMS WERE FOUND /domains/hnb_frtest/weblogic.utils.classloaders.GenericClassLoader@7e1a4876 finder: weblogic.utils.classloaders.CodeGenClassFinder@37fb545a annotation: /WEB-INF/lib/tomcat-embed-websocket-9.0.12.jar!/META-INF/web-fragment.xml:18:3:18:3: problem: cvc-enumeration-valid: string value '4.0' is not a valid enumeration value for web-app-versionType in namespace http://xmlns.jcp.org/xml/ns/javaee
有人遇到此错误吗?如果是的话,该怎么解决?
P.S。我已经读过一个有关创建web.xml文件和更改Web应用程序版本的答案,但是我也尝试过,但是它不起作用。
答案 0 :(得分:-2)
您可以将其插入pom.xml:
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
您已排除了Tomcat的所有库,因为Tomcat用于在本地执行复制,但在weblogic中,Tomcat可能不会保留。
答案 1 :(得分:-2)
尝试一下。为我工作:
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>