Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classcast Exception using Spring Transaction
 
Similar Threads
Spring problem (SimpleFormController)
Classcast Exception using Spring Transaction
java. lang. IllegalStateException: Neither Binding Result nor plain target object
populate a form
SpringMVC and Transactions