Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

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

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
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 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?
Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • 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.

Something must be done about this. Let's start by reading this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic