simzyoo opened a new issue, #7454:
URL: https://github.com/apache/incubator-seata/issues/7454

   ### Check Ahead
   
   - [x] I have searched the [issues](https://github.com/seata/seata/issues) of 
this repository and believe that this is not a duplicate.
   
   
   ### Ⅰ. Issue Description
   
   对2.3的代码增加了一行日志后,重新打包制作2.3的镜像,在完成mysql依赖挂载后,启动仍然报错显示找不到依赖:
   2.1也做过类似操作,没有报错。
   
   一、启动日志:
   ```
   2025-06-19 18:49:53.941  INFO --- [main] 
[org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader]
 [findAllExtensionDefinition] []: Ignore load compatible class 
io.seata.config.ExtConfigurationProvider, because is not assignable from origin 
type org.apache.seata.config.ExtConfigurationProvider
   2025-06-19 18:49:54.020  INFO --- [main] 
[org.apache.seata.config.ConfigurationFactory] [load] []: load Configuration 
from :FileConfiguration$$EnhancerByCGLIB$$6e15d955
   2025-06-19 18:49:54.027  INFO --- [main] 
[org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader]
 [findAllExtensionDefinition] []: Load compatible class 
io.seata.config.ConfigurationProvider
   2025-06-19 18:49:54.047  INFO --- [main] 
[org.apache.seata.config.nacos.NacosConfiguration] [getConfigProperties] []: 
Nacos config auth properties empty.
   2025-06-19 18:49:54.164  INFO --- [main] 
[org.apache.seata.server.ServerApplication] [logStarting] []: Starting 
ServerApplication v2.3.0-TEST-SNAPSHOT using Java 1.8.0_422 on 2647f304187a 
with PID 68 (/seata-server/target/seata-server.jar started by root in /)
   2025-06-19 18:49:54.165  INFO --- [main] 
[org.apache.seata.server.ServerApplication] [logStartupProfileInfo] []: No 
active profile set, falling back to 1 default profile: "default"
   2025-06-19 18:49:55.483  INFO --- [main] 
[org.springframework.boot.web.embedded.tomcat.TomcatWebServer] [initialize] []: 
Tomcat initialized with port(s): 7091 (http)
   2025-06-19 18:49:55.497  INFO --- [main] 
[org.apache.coyote.http11.Http11NioProtocol] [log] []: Initializing 
ProtocolHandler ["http-nio-7091"]
   2025-06-19 18:49:55.499  INFO --- [main] 
[org.apache.catalina.core.StandardService] [log] []: Starting service [Tomcat]
   2025-06-19 18:49:55.499  INFO --- [main] 
[org.apache.catalina.core.StandardEngine] [log] []: Starting Servlet engine: 
[Apache Tomcat/9.0.98]
   2025-06-19 18:49:55.566  INFO --- [main] 
[org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]] [log] []: 
Initializing Spring embedded WebApplicationContext
   2025-06-19 18:49:55.566  INFO --- [main] 
[org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext]
 [prepareWebApplicationContext] []: Root WebApplicationContext: initialization 
completed in 1343 ms
   2025-06-19 18:49:55.911  WARN --- [main] 
[org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext]
 [refresh] []: Exception encountered during context initialization - cancelling 
refresh attempt: org.springframework.beans.factory.BeanCreationException: Error 
creating bean with name 'globalSessionDBServiceImpl' defined in URL 
[jar:file:/seata-server/target/seata-server.jar!/BOOT-INF/classes!/org/apache/seata/server/console/impl/db/GlobalSessionDBServiceImpl.class]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd]:
 Constructor threw exception; nested exception is 
org.apache.seata.common.loader.EnhancedServiceNotFoundException: not found 
service provider for : org.apache.seata.core.store.db.DataSourceProvider caused 
by java.lang.IllegalStateException: Extension instance
 (definition: org.apache.seata.common.loader.ExtensionDefinition@966d5b3b, 
class: interface org.apache.seata.core.store.db.DataSourceProvider)  could not 
be instantiated: The driver {com.mysql.jdbc.Driver} cannot be found in the path 
/seata-server/lib/jdbc/. Please ensure that the appropriate database driver 
dependencies are included in the classpath.
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:495)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.getExtensionInstance(EnhancedServiceLoader.java:478)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.loadExtension(EnhancedServiceLoader.java:453)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.load(EnhancedServiceLoader.java:347)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.access$200(EnhancedServiceLoader.java:278)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:116)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:101)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl.<init>(GlobalSessionDBServiceImpl.java:80)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd.<init>(<generated>)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:213)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1289)
           at 
org.apache.seata.server.ServerApplication.main(ServerApplication.java:30)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
           at 
org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
   Caused by: org.apache.seata.common.exception.StoreException: The driver 
{com.mysql.jdbc.Driver} cannot be found in the path /seata-server/lib/jdbc/. 
Please ensure that the appropriate database driver dependencies are included in 
the classpath.
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.validate(AbstractDataSourceProvider.java:103)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.generate(AbstractDataSourceProvider.java:84)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.init(AbstractDataSourceProvider.java:75)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.initInstance(EnhancedServiceLoader.java:707)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:492)
           ... 40 more
   
   2025-06-19 18:49:55.916  INFO --- [main] 
[org.apache.catalina.core.StandardService] [log] []: Stopping service [Tomcat]
   2025-06-19 18:49:56.007  INFO --- [main] 
[org.springframework.boot.autoconfigure.logging.ConditionEvaluationReportLoggingListener]
 [logMessage] []: 
   
   Error starting ApplicationContext. To display the conditions report re-run 
your application with 'debug' enabled.
   2025-06-19 18:49:56.037 ERROR --- [main] 
[org.springframework.boot.SpringApplication] [reportFailure] []: Application 
run failed
   ==> 
   org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'globalSessionDBServiceImpl' defined in URL 
[jar:file:/seata-server/target/seata-server.jar!/BOOT-INF/classes!/org/apache/seata/server/console/impl/db/GlobalSessionDBServiceImpl.class]:
 Instantiation of bean failed; nested exception is 
org.springframework.beans.BeanInstantiationException: Failed to instantiate 
[org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd]:
 Constructor threw exception; nested exception is 
org.apache.seata.common.loader.EnhancedServiceNotFoundException: not found 
service provider for : org.apache.seata.core.store.db.DataSourceProvider caused 
by java.lang.IllegalStateException: Extension instance(definition: 
org.apache.seata.common.loader.ExtensionDefinition@966d5b3b, class: interface 
org.apache.seata.core.store.db.DataSourceProvider)  could not be instantiated: 
The driver {com.mysql.jdbc.Driver} cannot be found in the path /s
 eata-server/lib/jdbc/. Please ensure that the appropriate database driver 
dependencies are included in the classpath.
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:495)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.getExtensionInstance(EnhancedServiceLoader.java:478)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.loadExtension(EnhancedServiceLoader.java:453)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.load(EnhancedServiceLoader.java:347)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.access$200(EnhancedServiceLoader.java:278)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:116)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:101)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl.<init>(GlobalSessionDBServiceImpl.java:80)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd.<init>(<generated>)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:213)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1289)
           at 
org.apache.seata.server.ServerApplication.main(ServerApplication.java:30)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
           at 
org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
   Caused by: org.apache.seata.common.exception.StoreException: The driver 
{com.mysql.jdbc.Driver} cannot be found in the path /seata-server/lib/jdbc/. 
Please ensure that the appropriate database driver dependencies are included in 
the classpath.
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.validate(AbstractDataSourceProvider.java:103)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.generate(AbstractDataSourceProvider.java:84)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.init(AbstractDataSourceProvider.java:75)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.initInstance(EnhancedServiceLoader.java:707)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:492)
           ... 40 more
   
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1334)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
 ~[spring-context-5.3.39.jar:5.3.39]
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
 ~[spring-context-5.3.39.jar:5.3.39]
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
 ~[spring-boot-2.7.18.jar:2.7.18]
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732) 
[spring-boot-2.7.18.jar:2.7.18]
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
 [spring-boot-2.7.18.jar:2.7.18]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308) 
[spring-boot-2.7.18.jar:2.7.18]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1300) 
[spring-boot-2.7.18.jar:2.7.18]
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1289) 
[spring-boot-2.7.18.jar:2.7.18]
           at 
org.apache.seata.server.ServerApplication.main(ServerApplication.java:30) 
[classes!/:2.3.0-TEST-SNAPSHOT]
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.8.0_422]
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[na:1.8.0_422]
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[na:1.8.0_422]
           at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_422]
           at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49) 
[seata-server.jar:2.3.0-TEST-SNAPSHOT]
           at 
org.springframework.boot.loader.Launcher.launch(Launcher.java:108) 
[seata-server.jar:2.3.0-TEST-SNAPSHOT]
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:58) 
[seata-server.jar:2.3.0-TEST-SNAPSHOT]
           at 
org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
 [seata-server.jar:2.3.0-TEST-SNAPSHOT]
   Caused by: org.springframework.beans.BeanInstantiationException: Failed to 
instantiate 
[org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd]:
 Constructor threw exception; nested exception is 
org.apache.seata.common.loader.EnhancedServiceNotFoundException: not found 
service provider for : org.apache.seata.core.store.db.DataSourceProvider caused 
by java.lang.IllegalStateException: Extension instance(definition: 
org.apache.seata.common.loader.ExtensionDefinition@966d5b3b, class: interface 
org.apache.seata.core.store.db.DataSourceProvider)  could not be instantiated: 
The driver {com.mysql.jdbc.Driver} cannot be found in the path 
/seata-server/lib/jdbc/. Please ensure that the appropriate database driver 
dependencies are included in the classpath.
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:495)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.getExtensionInstance(EnhancedServiceLoader.java:478)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.loadExtension(EnhancedServiceLoader.java:453)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.load(EnhancedServiceLoader.java:347)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.access$200(EnhancedServiceLoader.java:278)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:116)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:101)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl.<init>(GlobalSessionDBServiceImpl.java:80)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd.<init>(<generated>)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:213)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1289)
           at 
org.apache.seata.server.ServerApplication.main(ServerApplication.java:30)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
           at 
org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
   Caused by: org.apache.seata.common.exception.StoreException: The driver 
{com.mysql.jdbc.Driver} cannot be found in the path /seata-server/lib/jdbc/. 
Please ensure that the appropriate database driver dependencies are included in 
the classpath.
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.validate(AbstractDataSourceProvider.java:103)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.generate(AbstractDataSourceProvider.java:84)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.init(AbstractDataSourceProvider.java:75)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.initInstance(EnhancedServiceLoader.java:707)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:492)
           ... 40 more
   
           at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:226) 
~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
 ~[spring-beans-5.3.39.jar:5.3.39]
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
 ~[spring-beans-5.3.39.jar:5.3.39]
           ... 25 common frames omitted
   Caused by: org.apache.seata.common.loader.EnhancedServiceNotFoundException: 
not found service provider for : 
org.apache.seata.core.store.db.DataSourceProvider caused by 
java.lang.IllegalStateException: Extension instance(definition: 
org.apache.seata.common.loader.ExtensionDefinition@966d5b3b, class: interface 
org.apache.seata.core.store.db.DataSourceProvider)  could not be instantiated: 
The driver {com.mysql.jdbc.Driver} cannot be found in the path 
/seata-server/lib/jdbc/. Please ensure that the appropriate database driver 
dependencies are included in the classpath.
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:495)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.getExtensionInstance(EnhancedServiceLoader.java:478)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.loadExtension(EnhancedServiceLoader.java:453)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.load(EnhancedServiceLoader.java:347)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.access$200(EnhancedServiceLoader.java:278)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:116)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader.load(EnhancedServiceLoader.java:101)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl.<init>(GlobalSessionDBServiceImpl.java:80)
           at 
org.apache.seata.server.console.impl.db.GlobalSessionDBServiceImpl$$EnhancerBySpringCGLIB$$ae63addd.<init>(<generated>)
           at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
           at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           at 
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:213)
           at 
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1326)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
           at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
           at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
           at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
           at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
           at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
           at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:591)
           at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147)
           at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:732)
           at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:409)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1300)
           at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1289)
           at 
org.apache.seata.server.ServerApplication.main(ServerApplication.java:30)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:498)
           at 
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:49)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
           at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
           at 
org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:467)
   Caused by: org.apache.seata.common.exception.StoreException: The driver 
{com.mysql.jdbc.Driver} cannot be found in the path /seata-server/lib/jdbc/. 
Please ensure that the appropriate database driver dependencies are included in 
the classpath.
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.validate(AbstractDataSourceProvider.java:103)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.generate(AbstractDataSourceProvider.java:84)
           at 
org.apache.seata.core.store.db.AbstractDataSourceProvider.init(AbstractDataSourceProvider.java:75)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.initInstance(EnhancedServiceLoader.java:707)
           at 
org.apache.seata.common.loader.EnhancedServiceLoader$InnerEnhancedServiceLoader.createNewExtension(EnhancedServiceLoader.java:492)
           ... 40 more
   
    <==
   2025-06-19 18:49:56.039  WARN --- [Thread-7] 
[com.alibaba.nacos.common.http.HttpClientBeanHolder] [shutdown] []: 
[HttpClientBeanHolder] Start destroying common HttpClient
   2025-06-19 18:49:56.040  WARN --- [Thread-7] 
[com.alibaba.nacos.common.http.HttpClientBeanHolder] [shutdown] []: 
[HttpClientBeanHolder] Destruction of the end
   ```
   
   二、依赖截图:
   
   <img width="754" alt="Image" 
src="https://github.com/user-attachments/assets/48c04dd7-64e8-472e-b9d7-1821d69e52c3";
 />
   
   
   
   
   
   
   
   ### Ⅱ. Describe what happened
   
   _No response_
   
   ### Ⅲ. Describe what you expected to happen
   
   _No response_
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   _No response_
   
   ### Ⅴ. Anything else we need to know?
   
   _No response_
   
   ### Ⅵ. Environment
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to