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>