davided80 wrote:
Hi,
I would guess that the web application is using a different JPA version.
Could you give us more details about the dependencies in the classpath and the container you are using?
Hi Davided80, tks for you help.
I use this one
-> antlr-2.7.7.jar
-> dom4j-1.6.1.jar
-> hibernate-commons-annotation-4.0.4.FINAL.jar
-> hibernate-core-4.3.4.Final.jar
-> hibernate-entitymenager-4.3.4.jar
-> hibernate-jpa-2.1-api-1.0.0.Final.jar
-> jandex-1.1.0.Final.jar
-> javassist-3.18.1-GA.jar
-> jboss-loggin-3.1.3.GA.jar
-> jboss.-logging-annotation-1.2.0.Beta1.jar
-> jboss-transaction-api_1.2_spec-1.0.0.Final.jar
-> mysql-connector-java-5.1.18-bin.jar
and JBoss 7.0