apache / apache/incubator-seata

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

Open
#5,227 3 comments 0 reactions 0 assignees View on GitHub
good first issue task: help-wanted
Dominant language
Java
Stars
26k
Forks
8.8k
Avg merge
1d 8h
Merged PRs (30d)
4

Description

- [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

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](https://user-images.githubusercontent.com/38641421/210365633-37944904-d499-4483-93fd-4b043c993737.png)

### Ⅱ. Environment:

- JDK version : 17
- Seata version: 1.6.1
- SpringBoot: 3.0.0
- SpringCloud: 2022.0.0

Contributor guide

Open the contributing guide

Research direction

Reproduce the client startup failure with JDK 17, Seata 1.6.1, Spring Boot 3.0.0, Spring Cloud 2022.0.0, and Eureka. Start at SeataAutoConfiguration and trace the reference to com.netflix.config.ConfigurationManager; done means the client starts without this NoClassDefFoundError in the reported environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring-boot
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.