GeeCON Prague 2014*
The moose likes Other Application Frameworks and the fly likes Classcast Exception using Spring Transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Classcast Exception using Spring Transaction" Watch "Classcast Exception using Spring Transaction" New topic
Author

Classcast Exception using Spring Transaction

Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
Hi

I am getting this exception while using it in the SimpleFormController

java.lang.ClassCastException: org.springframework.orm.hibernate3.HibernateTransactionManager cannot be cast to org.springframework.transaction.support.ResourceTransactionManager



Thanks in Advance,
Kash.
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

when you already declare tx right here..



then why do here it again?



Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
Thats the copy paste evil, but exception is coming up for some other reason. Its still up.
 
GeeCON Prague 2014
 
subject: Classcast Exception using Spring Transaction