neni
neni

Reputation: 813

Migration from spring 1.2.8 to spring 3.1 and Hibernate 3.1 to 4.0

I am looking for a spring 1.2.8 to spring 3.1 migration guide and Hibernate migration guide. I could not find relevant info on Google. Please share with me if there are useful articles.

I got the following error when I replace spring 1.2.8 jar with spring 3.1 jars.

java.lang.NoSuchFieldError: MANUAL at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.(OpenSessionInViewFilter.java:102)

Upvotes: 2

Views: 2229

Answers (1)

Ralph
Ralph

Reputation: 120771

Update to Hibernate 3.2 or newer first! See https://jira.springsource.org/browse/SPR-7008 (last comment)

It is the first answer by Google if you google for "java.lang.NoSuchFieldError: MANUAL at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.(OpenSessionInViewFilter.java:102)"


If you use Hibernate 4, then you should use the new org.springframework.orm.hibernate4 package (introduced in Spring 3.1) instead of the hibernate3 package.


Btw: Update the system step by step, but not all at once!

For example:

  • Update to Hibernate >= 3.2
  • Update to spring 2.0 or 2.5
  • Update to Hibernate 3.x
  • Then update to spring 3.0
  • May Replace Hibernate with JPA 2.0 ( Then update to spring 3.1 (hopefully not so much to change)
  • And then to Hibernate 4.0

Upvotes: 1

Related Questions