dimanche 1 mars 2015

java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()

i'm very new in spring and hibernate. i don't use maven. its just a web application hibernate spring hello world project. i use intellij 11 ,spring 4.1 ,hibernate 4.3 ,javax 3.1 ,weblogic 10 ,oracle 11


its hierarchy of my project:


hierarchy of spring/hibernate project


if i move META-INF to any other place i got this error: A JDBC Driver or DataSource class name must be specified in the ConnectionDriverName property


and else i got : java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getValidationMode()


i serach and found i must update version of javax.persistence but it didn't work. how can i fix this?


Aucun commentaire:

Enregistrer un commentaire