This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate: org.springframework.beans.factory.BeanCreationException

 
Frank VanOor
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Frank VanOor
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic