c3p0为64位tomcat

时间:2011-06-20 19:10:02

标签: tomcat 64-bit c3p0 jdbc-odbc

我们为Sybase提供了c3p0连接池。它在32位服务器上的Tomcat 7.0上运行良好。一旦我们在64位服务器上运行它,tomcat和jre都安装在64位下,它会抛出:

Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
    at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
    at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
    at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
    ... 5 more
java.sql.SQLException: Connections could not be acquired from the underlying database!
    at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
    at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)

我们已经设置了64位系统DSN。使用指定的DSN成功创建dataSource。当它在dataSource上调用getConnection()时抛出错误。

有什么建议吗?

0 个答案:

没有答案