GitHub user zhuo9426 closed a discussion: java.lang.ClassNotFoundException: 
com.taobao.api.TaobaoRequest

seata-spring-boot-starter:2.1.0 启动器启动启动类后显示错误信息
2025-06-26 16:26:32.314 ERROR org.springframework.boot.SpringApplication 
Application run failed

org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'globalTransactionScanner' defined in class path resource 
[org/apache/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: 
com/taobao/api/TaobaoRequest
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1806)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
        at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
        at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:205)
        at 
org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:265)
        at 
org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:806)
        at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:609)
        at 
org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:146)
        at 
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
        at 
org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1363)
        at 
org.springframework.boot.SpringApplication.run(SpringApplication.java:1352)
        at 
com.redxun.JpaasPortalApplication.main(JpaasPortalApplication.java:23)
Caused by: java.lang.NoClassDefFoundError: com/taobao/api/TaobaoRequest
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Class.java:421)
        at java.base/java.lang.Class.forName(Class.java:412)
        at 
org.apache.seata.spring.annotation.GlobalTransactionScanner.findBusinessBeanNamesNeededEnhancement(GlobalTransactionScanner.java:502)
        at 
org.apache.seata.spring.annotation.GlobalTransactionScanner.afterPropertiesSet(GlobalTransactionScanner.java:483)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853)
        at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1802)
        ... 16 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.taobao.api.TaobaoRequest
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
        ... 23 common frames omitted

GitHub link: https://github.com/apache/incubator-seata/discussions/7475

----
This is an automatically sent email for dev@seata.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@seata.apache.org


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

Reply via email to