File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes Hibernate: org.springframework.beans.factory.BeanCreationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Hibernate: org.springframework.beans.factory.BeanCreationException" Watch "Hibernate: org.springframework.beans.factory.BeanCreationException" New topic

Hibernate: org.springframework.beans.factory.BeanCreationException

Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49
I'm using spring 3.0.5, tomcat 6.0.16 and would like to intergrate Hibernate.
When Tomcat starts, the following exception occurs:

application context

part of pom.xml

Many thanks in advance.
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902

Try googling, Caused by: java.lang.IncompatibleClassChangeError: Implementing class.
The issue might because of some hibernate jar mismatched version, also check if app server lib doesn't already got some hibernate jar.

[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49

Thanks for info.
The server doesn't have any hibernate jar.
Can somebody give a list of jars which I should use in my pom.xml. I looks like there is a conflict with jars.
Frank VanOor
Ranch Hand

Joined: Jun 18, 2004
Posts: 49

Since Hibernate 3.6 you don't need to add Hibernate Annotations as a separate jar, the classes are merged in core (and the old ones are not compatible).
I removed Hibernate-annotations.jar from the POM, and no exception anymore when tomcat starts.
jQuery in Action, 2nd edition
subject: Hibernate: org.springframework.beans.factory.BeanCreationException
Similar Threads
org.springframework.web.context.ContextLoader - Context initialization failed
unable to integrate my dao classes with spring
java.lang.NoSuchMethodError: HandlerMethodResolver
Spring Major version '3' expected
Spring 3.0.2 and Active MQ 5.4.1 Issues