-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
ClassNotFoundException: org.hibernate.dialect.MySQL57Dialect with Hibernate 6.4 #31889
Comments
Running your sample with Hibernate 6.3.2 shows the following:
It seems Spring Framework is still referring to this class in |
Thanks for the report. In the There are two ways to fix this. You can either remove the explicit platform in hibernateJpaVendorAdapter.setDatabasePlatform("org.hibernate.dialect.MySQLDialect"); Arguably, the former is preferred as it is more in line with what the application does (let the JPA provider detect the infrastructure). We'll fix the MySQL dialect in the next maintenance release. |
This didn't resolve the problem for the Oracle12cDialect for me. I have specified: and I'm not creating any custom HibernateJpaVendorAdapter and I also don't see the warning bclozel posted. I've also tried running without those properties, to no avail. |
@barbetb the arrangement that you've quoted is quite specific so commenting with a different arrangement and stating "didn't resolve the problem" is not very helpful. The warning that Brian referenced is about MySQL for a start, and for an older Hibernate version. All in all, this is confusing and you probably want to ask for support on StackOverflow first. If you believe you've found a different bug, then a separate issue is needed with a small sample that demonstrates the problem you're experiencing. |
After updating my project from Spring Boot Version 3.2.0 to 3.2.1, I am no longer able to start my application.
My application uses Spring JPA (via
spring-boot-starter-data-jpa
) and a MySQL 8.2 database.During start-up, I receive the following error message:
I looks like Hibernate 6.4 removed the
MySQL57Dialect
class (or at least moved it to thehibernate-community-dialects
artifact). When I set the property<hibernate.version>6.3.2.Final</hibernate.version>
in my pom.xml file, my application starts without errors.I created a repository with a test case to reproduce this issue: https://github.com/HennyWilly/springboot321-hibernate64-bug
PS: This is my first issue, so I am not sure if this is the right repository or if I should have opened this issue inside the spring-framework repository.
The text was updated successfully, but these errors were encountered: