apache / incubator-seata

:fire: Seata is an easy-to-use, high-performance, open source distributed transaction solution.
https://seata.apache.org/
Apache License 2.0
25.23k stars 8.76k forks source link

Seata1.6.1,注册中心为eureka,在springboot3.0.0+springcloud2022.0.0,客户端启动报错NoClassDefFoundError: com/netflix/config/ConfigurationManager #5227

Open renlm opened 1 year ago

renlm commented 1 year ago

Ⅰ. Issue Description

Seata1.6.1,注册中心为eureka,在springboot3.0.0+springcloud2022.0.0,客户端启动报错 Error creating bean with name 'globalTransactionScanner' defined in class path resource [io/seata/spring/boot/autoconfigure/SeataAutoConfiguration.class]: com/netflix/config/ConfigurationManager

因为springcloud2022.0.0的eureka已经剔除了archaius的依赖,ConfigurationManager不存在 image

Ⅱ. Environment:

slievrly commented 1 year ago

@renlm can you submit a pr to fix it ?

SingKS8 commented 1 year ago

springcloud-2021.x 系列通过补充被排除的依赖可以解决,而springcloud-2022.x系列因为jakarta ee模块的改造;netflix专门为此发了一个2.0.0版本,并且有不少变动,像com.netflix.discovery.DiscoveryClient基本是构造方法都被重构了。 个人认为seata团队先确定版本支持的时间线,以及何时升级相关版本然后改造,否则单纯一个PR会带来一定稳定性上的风险。

Ha0Chen commented 1 year ago

用了seata1.7也有同样的问题