This issue comes from having a JPA 2.0 jar on your classpath, which the Class Loader uses it instead of the JPA 2.1 dependency.
To find out the culprit, you should run the following command:
Code:
> mvn dependency:tree
and search for JPA 2.0 in the command output.
After you found the JPA 2.0 dependency, you should exclude it.
Also, you should add this dependency to force the Class Loader to use JPA 2.1:
Code:
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.1-api</artifactId>
<version>1.0.0.Final</version>
</dependency>