Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition appears when loading biz module in samples/dubbo-samples/rpc/dubbo26 #466

Closed
ToviHe opened this issue Jan 12, 2024 · 0 comments

Comments

@ToviHe
Copy link
Collaborator

ToviHe commented Jan 12, 2024

Describe the question or bug

When running the dubbo26 sample program, it was found that the Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition error occurred during the installBiz stage.
It looks like the spring.main.allow-bean-definition-overriding=true configuration has been added in dubbo26base and the two biz modules are missing.
See apache/dubbo-spring-boot-project#476 and apache/dubbo#3193

Expected behavior

successfully installed biz

Actual behavior

Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition

Steps to reproduce

Steps to reproduce the problem:

1.cd samples/dubbo-samples/rpc/dubbo26/dubbo26model
mvn clean install

2.cd ../
mvn clean package

  1. Start Dubbo26BaseApplication.java

  2. Invalid bean definition with name 'dubboConfigConfiguration.Single' defined in null: Cannot register bean definition appears when installing biz module

Screenshots

image

Minimal yet complete reproducer code (or GitHub URL to code)

Environment

  • SOFAServerless version (see CURRENT_VERSION.txt):0.3
  • SOFAArk version:2.2.6
  • JVM version (e.g. java -version):1.8
  • OS version (e.g. uname -a):23.3.0 Darwin arm64
  • Kubernetes version:1.27.2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants