Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NoClassDefFoundError in JPAProvider.<clinit> #377
I use Querydsl 3.0 with OpenJPA (no Hibernate is on the classpath).
When I execute a query like this:
I get the following exception:
This is because com.mysema.query.jpa.HibernateHandler uses imports from org.hibernate,* that can't be resolved on my classpath.
Maybe, as an example solution, catch the NoClassDefFoundError in JPAProvider#addMapping(String className, JPQLTemplates templates)
With Querydsl 2.9 the problem does not occur.