Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error creating bean 'org.spring....PersistenceExceptionTranslationPostProcessor#0'

 
Ramon Bonet
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

The following error appears when I try to enter at my main url application localhost:8080/springmvc/, with VMware vFabric tc server 2.8.2 previously executed, using STS last version:

These are a chain of concatenated errors:


note: my Spring xml context configuratior is servlet-context.xml


HTTP 500 state, exception at Servlet.init()

Root cause:

org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExc eptionTranslationPostProcessor#0' defined in servlet-context.xml

": Error creating bean with name 'sessionFactory' defined in servlet-context.xml

org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean]: Constructor threw exception

java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration
org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean.<init>



There is something I should know about defining a PersistenceExceptionTranslationPostPorcessor in my xml Spring file? Or maybe error begins with defining the AnnotationSessionFactoryBean bean?

Here are the servlet-context.xml:



I'm sure that errors are between <jee:jndi-lookup> and <tx:annotation-driven> elements

( POST CONTINUE IN THE FIRST THREAD REPLY with the rest of code files)
 
Ramon Bonet
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only if necessary, here is pom.xml:



and finally my DAO interface and implementation, only if necessary:

Dao Interface:


Dao implementation


and Client.java data access object:


I'm sure all group dependency versions at pom.xml are updated, and I'm really lost founding a solution.

Can someone help me?
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah get rid of


That is really old. Bring in the hibernate dependencies. It looks like you are trying to use version 3. Going by memory here but try starting with these. Hopefully that will be enough to pull in all the transitive dependencies.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic