获取异常org.springframework.transaction.CannotCreateTransactionException

获取异常org.springframework.transaction.CannotCreateTransactionException,spring,Spring,我正在将Spring4与Hibernate4集成,但下面的异常正在发生。 有什么想法吗 Exception in thread "main" org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCExceptio

我正在将Spring4与Hibernate4集成,但下面的异常正在发生。 有什么想法吗

Exception in thread "main" org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection

我认为您在应用程序上下文xmlNo中传递了错误的数据源引用。我传递了正确的值,并且能够通过sql yog连接相同的用户名和pwd