On the development of MAVEN project, I personally encountered a series of problems recently, but solved a lot, now to share some of their experience to everyone, Java.lang.ClassNotFoundException: Play.db.jpa.JPABase, this question I think some people must have met, especially like to use the latest version of the software friends, I write Maven project, I encountered this problem began to tangle for a long time, later found to be hibernate version of the problem,
<dependency> <groupId>com.google.code.maven-play-plugin.org.hibernate</groupId> <artifactid >hibernate-core</artifactId> <version>4.2.15.final-patched-play-1.3.0</version></ Dependency>
This is now MAVEN official website The latest hibernate version, but if use this version, will always error, although does not affect the database operation, but the console will always error, I later found that some versions because there is no corresponding jar package, I now use the version does not have this problem
<dependency><groupid>org.hibernate</groupid><artifactid>hibernate-core</artifactid ><version>4.1.7.Final</version></dependency>
If you also have this problem, then change your hibernate version can be, hope to help everyone
This article is from the "Wind for the Shame" blog, please be sure to keep this source http://9266933.blog.51cto.com/9256933/1621245
Issues caused by Hibernate version