• Post Reply Bookmark Topic Watch Topic
  • New Topic

Classcast Exception using Spring Transaction

 
Kashif Mughal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you already declare tx right here..



then why do here it again?

 
Kashif Mughal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats the copy paste evil, but exception is coming up for some other reason. Its still up.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!