很奇怪,搞不定,求大家帮忙!!!!很急!!!!!在线等!!
我在做一个SSH的项目,属于功能升级:
写了一个业务逻辑的class Biz,对相关的表做了ORMAP,写了一个测试类继承Testcase
服务器用tomcat,datasource配置了连接池
用测试类直接测试,一切正常,但是部署到tomcat就报错:
# Exception occurred while logging on
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: Cannot open connection; uncategorized SQLException for SQL [???]; SQL state [null]; error code [0]; Connections could not be acquired from the underlying database!; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!