发生数据库错误:无法连接到数据库,客户端检出连接的尝试已超时。

时间:2013-11-22 14:34:29

标签: java playframework oracle10g

我想在播放框架中将oracle10g与我的应用程序连接起来。但是当我从命令提示符运行我的应用程序时,它会抛出以下错误 -

19:53:22,344 ERROR ~ Cannot connected to the database : An attempt by a client t
o checkout a Connection has timed out.

java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
        at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
        at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)
        at play.db.DBPlugin.onApplicationStart(DBPlugin.java:143)
        at play.plugins.PluginCollection.onApplicationStart(PluginCollection.java:525)
        at play.Play.start(Play.java:526)

这是我对application.conf的配置

db.driver=oracle.jdbc.driver.OracleDriver
db.url="jdbc:oracle:thin:@172.21.123.99:1521:HERMES
db.user=hermes
db.pass=hermes

连接池配置:

db.pool.timeout=15000
db.pool.maxSize=100
db.pool.minSize=10

请帮助我......

1 个答案:

答案 0 :(得分:0)

问题在于启动配置。尝试通过eclipse启动配置运行它,它运行良好