aspose file tools*
The moose likes Spring and the fly likes Error creating bean 'org.spring....PersistenceExceptionTranslationPostProcessor#0' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Error creating bean Watch "Error creating bean New topic
Author

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

Ramon Bonet
Greenhorn

Joined: Jun 02, 2013
Posts: 8
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

Joined: Jun 02, 2013
Posts: 8
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

Joined: Mar 07, 2010
Posts: 1666
    
    7

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.



[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error creating bean 'org.spring....PersistenceExceptionTranslationPostProcessor#0'