主题 : 我安装的时候出现了点小问题,麻烦版主看一下!~
级别: 童生
UID: 6374
积分:30 加为好友
威望: 0 精华: 0
主题:2 回复:16
注册时间:2010-05-04
在线时长:0
1#   发表于:2010-05-07 09:54:03  IP:222.164.*.*
首先非常感觉贵公司做出这样出色的开源产品!小弟在安装过程中出现了以下问题,麻烦管理员帮忙解决一下!
我在安装完成的时候出现以下exception.
2010-5-7 9:45:12 org.apache.catalina.startup.HostConfig checkResources
信息: Reloading context [/j2ee]
2010-5-7 9:45:12 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-5-7 9:45:12 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
严重: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. 


-----------------------------------------------------------------在重启tomcat的时候出现----------------------------------------------------------------

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) [c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) [c3p0-0.9.1.2.jar:0.9.1.2]
Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@2d502d -- timeout at awaitAvailable()
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317) [c3p0-0.9.1.2.jar:0.9.1.2]
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) [c3p0-0.9.1.2.jar:0.9.1.2]
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) [mysql.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) [mysql.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) [mysql.jar:na]

2010-05-07 09:47 WARN  c.m.v.r.BasicResourcePool - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@17644c8 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception: 
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946) [mysql.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985) [mysql.jar:na]
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:885) [mysql.jar:na]
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3421) [mysql.jar:na]

重新安装了好几次,还是出现这样的问题,麻烦帮忙解答下!
级别: 白丁
UID: 3
积分:2415 加为好友
威望: 0 精华: 0
主题:23 回复:1614
注册时间:2009-06-02
在线时长:0
2#   发表于:2010-05-08 09:46:08  IP:59.114.*.*
从错误来看应该是数据库连接的问题
把最大连接数设置小些试下
生命在于折腾!
级别: 童生
UID: 6374
积分:30 加为好友
威望: 0 精华: 0
主题:2 回复:16
注册时间:2010-05-04
在线时长:0
3#   发表于:2010-05-11 09:57:53  IP:112.159.*.*
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/JEESYS?characterEncoding=gbk
jdbc.username=root
jdbc.password=password

cpool.checkoutTimeout=5000

#cpool.minPoolSize=20
#cpool.maxPoolSize=50
cpool.minPoolSize=1
cpool.maxPoolSize=5

cpool.maxIdleTime=7200
cpool.maxIdleTimeExcessConnections=1800
#cpool.acquireIncrement=10
cpool.acquireIncrement=1

我觉得这样的连接池应该已经是最小了啊!~
1 共1页