Weblogic启动SpringBoot项目报错(类冲突)

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.

四月 11, 2022 4:48:10 下午 org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter report

严重:



***************************

APPLICATION FAILED TO START

***************************



Description:



An attempt was made to call the method com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch; but it does not exist. Its class, com.google.common.base.Stopwatch, is available from the following locations:



    zip:/home/weblogic/xams/domain/servers/xamsapp01/tmp/_WL_user/xIR_J2EE/ykfnf1/war/WEB-INF/lib/guava-20.0.jar!/com/google/common/base/Stopwatch.class

    jar:file:/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/modules/features/weblogic.server.merged.jar!/com/google/common/base/Stopwatch.class



It was loaded from the following location:



    file:/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/modules/features/weblogic.server.merged.jar





Action:



Correct the classpath of your application so that it contains a single, compatible version of com.google.common.base.Stopwatch



<2022-4-11 下午04时48分10秒 CST> <Error> <org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter> <BEA-000000> <



***************************

APPLICATION FAILED TO START

***************************



Description:



An attempt was made to call the method com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch; but it does not exist. Its class, com.google.common.base.Stopwatch, is available from the following locations:



    zip:/home/weblogic/xams/domain/servers/xamsapp01/tmp/_WL_user/xIR_J2EE/ykfnf1/war/WEB-INF/lib/guava-20.0.jar!/com/google/common/base/Stopwatch.class

    jar:file:/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/modules/features/weblogic.server.merged.jar!/com/google/common/base/Stopwatch.class



It was loaded from the following location:



    file:/home/weblogic/Oracle/Middleware/Oracle_Home/wlserver/modules/features/weblogic.server.merged.jar





Action:



Correct the classpath of your application so that it contains a single, compatible version of com.google.common.base.Stopwatch

>

2022-04-11 16:48:10,125 [Method=, URI=, IP=] [INFO] [com.xQuant.platform.app.aidSystem.common.socketBaseServer.listener.SocketBaseServerListener] - [socket服务监听关闭]

2022-04-11 16:48:10,130 [Method=, URI=, IP=] [INFO] [com.xquant.platform.component.job.listener.XQuartzInitializerListener] - Quartz Scheduler successful shutdown.

<2022-4-11 下午04时48分10秒 CST> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application "xIR_J2EE".

weblogic.application.ModuleException: java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch;

        at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)

        at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)

        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:216)

        at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:211)

        at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)

        Truncated. see log file for complete stacktrace

Caused By: java.lang.NoSuchMethodError: com.google.common.base.Stopwatch.createStarted()Lcom/google/common/base/Stopwatch;

        at com.xQuant.platform.app.enumdictionary.service.imp.EnumDictionaryServiceImp.init(EnumDictionaryServiceImp.java:47)

        at com.xQuant.platform.app.enumdictionary.service.imp.EnumDictionaryServiceImp.afterPropertiesSet(EnumDictionaryServiceImp.java:43)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1677)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1615)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)

        Truncated. see log file for complete stacktrace

>

<2022-4-11 下午04时48分10秒 CST> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>

<2022-4-11 下午04时48分10秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>

<2022-4-11 下午04时48分10秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>

<2022-4-11 下午04时48分10秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 191.168.1.61:8008 for protocols iiop, t3, ldap, snmp, http.>

<2022-4-11 下午04时48分10秒 CST> <Notice> <WebLogicServer> <BEA-000330> <Started the WebLogic Server Managed Server "xamsapp01" for domain "domain" running in production mode.>

<2022-4-11 下午04时48分10秒 CST> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>

<2022-4-11 下午04时48分10秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>

修改web-inf下的weblogic配置文件
在这里插入图片描述
结果如下

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app">
    <container-descriptor>
        <prefer-web-inf-classes>false</prefer-web-inf-classes>
        <prefer-application-packages>
            <package-name>javax.validation.*</package-name>
            <package-name>org.hibernate.*</package-name>
            <package-name>org.springframework.*</package-name>
            <package-name>org.apache.commons.*</package-name>
            <package-name>com.google.common.*</package-name>
            <package-name>org.slf4j</package-name>
            <package-name>com.fasterxml.jackson.*</package-name>
        </prefer-application-packages>
    </container-descriptor>
    <charset-params>
        <input-charset>
            <resource-path>/*</resource-path>
            <java-charset-name>UTF-8</java-charset-name>
        </input-charset>
    </charset-params>
</weblogic-web-app>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lang20150928

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值