“java.lang.NoSuchFieldError: NONE” in hibernate with Spring 3, maven, JPA, c3p0?

You included old version of hibernate-commons-annotations which transitively included JPA 1.0, which conflicts with JPA 2.0 required by 5.

You included old version of hibernate-commons-annotations, which transitively included JPA 1.0, which conflicts with JPA 2.0 required by 5. Moreover, since 5 you don't need to include multiple bernate artifacts anymore. You only need to declare hibernate-entitymanager in pom.

Xml, it should be enough for your setup. See also: bernate Compatibility Matrix.

Thanks - solved it straight away. I removed all dependencies for hibernate bar the entitymanager, and it ran. Different error message now, but completely unrelated - just my bad coding ;) – Diarmaid Apr 20 at 8:45.

It's complaining about this code line in org.hibernate.ejb. QueryImpl: private javax.persistence. LockModeType jpaLockMode = javax.persistence.LockModeType.

NONE; Since javax.persistence.LockModeType. NONE is new in JPA2, I suspect you also have JPA1 on your classpath somewhere. Find and remove it.

As axtavt suggested, I was including an old version of hibernate-commons-annotations. This did include JPA1 which was my problem. Thanks for the input =) – Diarmaid Apr 20 at 8:47.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions


Thank You!
send