-
Notifications
You must be signed in to change notification settings - Fork 873
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
Integration with Spring Data Rest gives NoClassDefFoundError #3481
Comments
springboot3.0 uses jakarta |
Running into same issue and also using jakarta classifier.
|
I mean that SpringBoot 3.0 seems to have abandoned JavaX |
I was able to fix by only using the following two dependencies (removing the direct query-dsl-core dependency)
|
related issue: querydsl/querydsl#3481
hello, i have the same issue, i dont have query-dsl-core in my dependencies, i was not able to automatically generate Qclasses.
to by able to generate them. BUT, i came accross the same problem with [NoClassDefFoundError] when i look into QuerydslPredicateExecutor for findAll(Predicate predicate) it seems it still wants to use javax and not jakarta.
Any idea how to fix this problem? |
I think the problem is that a few
|
I fixed it using this answer spring-projects/spring-data-jpa#2708 (comment) |
Observed vs. expected behavior
When JpaRepository is extended with
QuerydslPredicateExecutor
andQuerydslBinderCustomizer
and API is consumed it results injava.lang.ClassNotFoundException: javax.persistence.NoResultException
Steps to reproduce
Ex:
Environment
SpringBoot: 3.0.2
Querydsl version: 5.0.0
Querydsl module:
Database: PostgreSQL
JDK: 17
Additional details
StackTrace:
If I run the same piece of code in SpringBoot 2.5.3, the code works fine as expected and data is getting filtered.
The text was updated successfully, but these errors were encountered: