This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Spring and the fly likes *.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Spring
Bookmark "*.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider" Watch "*.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider" New topic

*.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider

Tatiana Vorobeva

Joined: Aug 06, 2011
Posts: 11


I'm trying to start new project with Spring + Hibernate + Maven.

At present, I can't understand what to do with the following error:



Maybe I should add some lib?

[Thumbnail for dependencies.jpg]

Tatiana Vorobeva

Joined: Aug 06, 2011
Posts: 11

Is there any chance to resolve this problem?
Tatiana Vorobeva

Joined: Aug 06, 2011
Posts: 11

Problem has been resolved.

There were incompatible versions of Spring (3.0) and Hibernate (4.0).

At present, everything is working with Spring 3.0.5.RELEASE + Hibernate 3.3.2.GA.
The only problem - Dialect class not found: "org.hibernate.dialect.PostgreSQLDialect" (it works only without this property), but it's behind the scope of this topic.
Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 77
I am also getting the same error even after using Spring 3.0.5.RELEASE and Hibernate 3.3.2.GA.

My appContext is as follows:

Regards,<br />Ketan KC Chachad
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: *.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider
It's not a secret anymore!