I know that this question has been answered before, but none of the responses seem to help me, since i am not using a datasource in my project.
I a have a Maven
project, integrated with Spring and Hibernate, connecting to a SQL Server 2014 database.
This is my pom.xml, where you can see the versions:
This is hibernate.cfg.xml:
And the class where i create the session factory:
I use Tomcat
8. Whenever i run it, i get UnknownUnwrapTypeException: Cannot unwrap to requested type [javax.sql.DataSource]
I have tried adding the details for the c3p0 connection pool as i have seen in an earlier post and i don't get the error anymore, but the server doesn't start up either, just hangs there after creating the pool.
Can someone, please, help with that?