Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • 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: 1324
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic