Skip to content
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

Using Axon Framework together with Spring Boot version >3.1.8 doesn't do JpaAutoConfiguration correctly #3024

Closed
Goopher opened this issue May 22, 2024 · 1 comment
Labels
Type: Bug Use to signal issues that describe a bug within the system.

Comments

@Goopher
Copy link

Goopher commented May 22, 2024

Basic information

  • Axon Framework version: 4.9.1
  • JDK version: 21

Steps to reproduce

Create new project with spring-boot-starter-parent 3.1.8 or higher, include spring-boot-starter-data-jpa and axon and see the following:

Description:

Parameter 2 of method eventStorageEngine in nl.goopher.mychatapp.config.AxonConfig required a bean of type 'org.axonframework.common.jpa.EntityManagerProvider' that could not be found.

Action:
Consider defining a bean of type 'org.axonframework.common.jpa.EntityManagerProvider' in your configuration.

Expected behaviour

The JpaAutoConfiguration class sets up the EntityManagerProvider correctly.

Actual behaviour

Application won't start because of a missing bean.

I think the issue might be this commit from Spring Boot:
spring-projects/spring-boot#38904

@Goopher Goopher added the Type: Bug Use to signal issues that describe a bug within the system. label May 22, 2024
@Goopher
Copy link
Author

Goopher commented May 22, 2024

Apologies, see now that it's fixed with later 4.9 versions.

@Goopher Goopher closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Use to signal issues that describe a bug within the system.
Projects
None yet
Development

No branches or pull requests

1 participant