java - NoSuchMethodError: org.hibernate.SessionFactory.openSession() -


I have hibernated 3.jar and hibernate-core-4.2.0. CR1.jar is in my cellosphere and I have the spring 3.1. Using version 3. The code has been compiled successfully, but at the runtime I am getting the error

2014-10-28 10: 51: 25,174 dBUG [RMI TCP connection (2) -10.126.30.203] - Target method failed for remote invocation: Method name 'GetPriceByKeys'; Parameter type [java.util.List, java.util.Date] java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession () Lorg / Hibernate / Session;

I did not find any solution for this but please note: my project requires hibernate 3.jar, but my project relies on any other third party jar, Those who want to use the hibernet4.2.0 jar.

Any help Pls ??

You must remove several hibernate JAR files from your classpath . Despite this, your application will not work as expected; Which means that you need to move the hibernate version from 3 to 4.1.

Although Spring 3.1 uses 3 jar files to be in hibernation, you can still migrate to hibernate 4. Watch the Spring Blog, gives a short tutorial to do this.

As part of the core-spring course, we have a lab application that we show how to integrate Spring and JPA / Hibernate simultaneously. . We have so far upgraded it to Spring 3.1 / Hibernate 4.1, and we thought we should share some tips.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -