Remove jpa1 jar and add jpa2 jar into your classpath

if you use hibernate jpa for persistence.

Remove - ejb3-persistence-1.x.x.jar
Add - hibernate-jpa-2.0-XXXXXX.jar.

2 Responses to javax/persistence/spi/PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;

  1. Fumandito says:

    thanks, very good solution

  2. Uchenna says:

    I think you are God sent. I have been having this issue for months. What did i do? i fell back to JPA 1.0. But now i can soar higher with JPA 2.0. you just solved the issue. Thanks a million times

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: