Announcement Announcement Module
Collapse
No announcement yet.
Problem with the name of hibernate package Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with the name of hibernate package

    Hi,

    I try to use the support for hibernnate, and when I try to create the LocalSessionFactoryBean I've got this error :

    java.lang.NoClassDefFoundError: net/sf/hibernate/cfg/Configuration

    But the Configuration class of hibernate is located in

    org/hibernate/cfg/Configuration

    So it seems that there's an error in the package name used by spring.

    Any hint ?

  • #2
    Need to use the LocalSessonFactory bean from the org.springframework.orm.hibernate3 package if you are using Hibernate3 (latest version). You are using the one from the org.springframework.orm.hibernate package. Hibernate changed its package names between 2.x and 3.x versions.

    Comment


    • #3
      Thanks a lot, it solves the problem
      Originally posted by cwash5 View Post
      Need to use the LocalSessonFactory bean from the org.springframework.orm.hibernate3 package if you are using Hibernate3 (latest version). You are using the one from the org.springframework.orm.hibernate package. Hibernate changed its package names between 2.x and 3.x versions.

      Comment

      Working...
      X