File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes *.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "*.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider" Watch "*.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider" New topic
Author

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

Tatiana Vorobeva
Greenhorn

Joined: Aug 06, 2011
Posts: 11

Hi!

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

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


appContext:


Dependencies:
screenshot

Maybe I should add some lib?
[Thumb - dependencies.jpg]
 Filename dependencies.jpg [Disk] Download
 Description
 Filesize 79 Kbytes
 Downloaded:  0 time(s)

Tatiana Vorobeva
Greenhorn

Joined: Aug 06, 2011
Posts: 11

Is there any chance to resolve this problem?
Tatiana Vorobeva
Greenhorn

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.
 
 
subject: *.hibernate3.LocalDataSourceConnectionProvider cannot be cast to *.ConnectionProvider
 
Threads others viewed
Problem with Hibernate sessionFactoryBean in application context initialization
Dependency injection problem
Dialect class not found: org.hibernate.dialect.MySQLDialect
Error Creating Bean
Spring+Hibernate can't create SessionFactory bean
Two Laptop Bag