在weblogic上部署PF战争文件

问题描述 投票:0回答:1

在过去的几天里,我试图在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-app版本的答案,但我也试过,但没有成功。

jsf weblogic
1个回答
-1
投票

你可以在 pom.xml 中插入这个。

    <exclusions>
            <exclusion>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-tomcat</artifactId>
            </exclusion>
    </exclusions>

你已经排除了Tomcat的所有库,因为Tomcat是为了在本地执行你的应用程序,但在weblogic中Tomcat不可能留下。

© www.soinside.com 2019 - 2024. All rights reserved.