I am getting an error in my application but I\'m not sure what it means. I posted some sample code bellow. This is the error I get:
> SEVERE: Exception sendin
Just looking at the issue it's coming from this code:
if ( ConnectionProvider.class.equals( unwrapType ) ||
DriverManagerConnectionProviderImpl.class.isAssignableFrom( unwrapType ) ) {
return (T) this;
}
else {
throw new UnknownUnwrapTypeException( unwrapType );
}
where unwrapType is javax.sql.DataSource
.
Whilst I can't explain exactly what it is about your config that causes this I can suggest a fix.
Define a DriverManagerDataSource
bean in your spring application context and then provide this as a property to your LocalSessionFactoryBean
. Make sure you remove the datasource configuration from your Hibernate configuration file.