Skip to content

Upgrading from Spring Modulith 1.4.0-M2 to 1.4.0-RC1 throwing NoSuchBeanDefinitionException #1196

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sivaprasadreddy opened this issue May 20, 2025 · 0 comments

Comments

@sivaprasadreddy
Copy link
Contributor

I have a sample Spring Modulith application in which I am publishing events to external RabbitMQ.

This is working fine with 1.4.0-M2, but throwing the following error when upgrading to 1.4.0-RC1:

aused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rabbitMQConfig' available
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:977) ~[spring-beans-6.2.6.jar:6.2.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1382) ~[spring-beans-6.2.6.jar:6.2.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-6.2.6.jar:6.2.6]
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~
...
...

To reproduce, update Spring Modulith version to 1.4.0-RC1 in pom.xml and run BookStoreApplicationTests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant