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

No ConnectionDriver with Spring Boot 3.0 #589

Closed
hstaudacher opened this issue Nov 29, 2022 · 4 comments
Closed

No ConnectionDriver with Spring Boot 3.0 #589

hstaudacher opened this issue Nov 29, 2022 · 4 comments

Comments

@hstaudacher
Copy link

Description

I just upgrade our application to Spring Boot 3.0. I'm using Mongock 5.2.1. With Spring Boot 2.7 the application started without a problem. After updating we are seeing the following error:

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of method getBuilder in io.mongock.runner.springboot.config.MongockContext required a bean of type 'io.mongock.driver.api.driver.ConnectionDriver' that could not be found.


Action:

Consider defining a bean of type 'io.mongock.driver.api.driver.ConnectionDriver' in your configuration.

PRIORITY

CRITICAL

Version and environment

Mongock

  • Mongock version: 5.2.1
  • Modules involved: Spring Boot 3.0
  • How Mongock is used: Annotation

Environment

  • Spring Boot 3.0
  • Infrastructure: local development

Steps to Reproduce

  1. Setup a spring boot 3.0 application. Setup MongoDB and configure Mongock
  2. Start the application

Behaviour

Expected behavior: Application should start.

Actual behavior: Application does not start.

How often the bug happens: Everytime

Link to repository using Mongock

[While not mandatory, accessing to the real code that uses Mongock, would help to solve the issue]

Additional context

[Any additional information, logs, screenshots, configuration or data that might be necessary to reproduce or understand the issue]

@osantana85
Copy link
Member

osantana85 commented Nov 29, 2022

Hello @hstaudacher , for Springboot 3 we provide specifics modules because it requires JDK17+. Are you using them?

<dependency>
    <groupId>io.mongock</groupId>
    <artifactId>mongock-springboot-v3</artifactId>
</dependency>

<!-- if you are using spring data v4 -->
<dependency>
    <groupId>io.mongock</groupId>
    <artifactId>mongodb-springdata-v4-driver</artifactId>
</dependency>

@hstaudacher
Copy link
Author

Thanks so much. This fixed the problem. Is the spring boot 3 support documented somewhere? I wasn't able to find it.

@osantana85
Copy link
Member

Not yet, sorry. It was an urgent update required by JHipster team. We'll document it as soon as possible. Thanks.

@hstaudacher
Copy link
Author

hstaudacher commented Nov 29, 2022

Alright, no worries. At least people can find this issue now :). Thanks again!

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

2 participants