This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring 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