2 qq 30622403 qq_30622403 于 2016.03.29 20:40 提问

tomcat启动c3p0出现如下代码,项目不能启动

2016-3-29 20:31:28 com.mchange.v2.c3p0.C3P0Registry banner
信息: Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10]
2016-3-29 20:31:30 org.springframework.orm.hibernate3.LocalSessionFactoryBean buildSessionFactory
信息: Building new Hibernate SessionFactory
2016-3-29 20:31:30 com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
信息: Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 5000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge1609f1hxdqjpv398fw|5106def2, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge1609f1hxdqjpv398fw|5106def2, idleConnectionTestPeriod -> 0, initialPoolSize -> 10, jdbcUrl -> jdbc:oracle:thin:@localhost:1521:orcl, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
2016-3-29 20:31:31 org.springframework.orm.hibernate3.HibernateTransactionManager afterPropertiesSet
信息: Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 5000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge1609f1hxdqjpv398fw|5106def2, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge1609f1hxdqjpv398fw|5106def2, idleConnectionTestPeriod -> 0, initialPoolSize -> 10, jdbcUrl -> jdbc:oracle:thin:@localhost:1521:orcl, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 50, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
2016-3-29 20:31:31 org.springframework.web.context.ContextLoader initWebApplicationContext
信息: Root WebApplicationContext: initialization completed in 4030 ms
求大神来解决这个问题!

1个回答

u013821825
u013821825   2016.03.29 23:00

代码太乱了,首先得保证配置文件没错

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
c3p0连接池链接为关闭引起的tomcat启动问题
spring struts2 beans A C3P0Registry mbean is already registered com.mchang.v2.resourcepool.basicResourcepool$AcquireTask@606af5c2 - -Acquisition Attempt Faild!!! Clearing pending.... java.sql.SQLException: Accessdenied for user 'anqi'@'localhost'(using p
tomcat配置c3p0数据库连接池遇到问题与解决
这短时间在做一个Android项目,由于牵扯到数据库,也就有服务器。app预期是想做大,所以一方面考虑到性能相关 因此就想把tomcat和比较知名的c3p0结合起来,从这一方面来提高性能。 首先第一步:把c3p0解压文件夹的3个jar包全部考到tomcat根目录下lib文件夹下面,当然还有数据库连接jar包。 第二步:配置server.xml以及content.xml; server.xm
C3P0连接池启动时 APPARENT DEADLOCK!!! 错误
在Windows平台下运行正常的应用部署到Linux服务器上之后,一直报错:com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@bbd1b —APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks! 查了好多论坛,发现
MyEclipse项目工程运行时出现log4j没有初始化或c3p0卡住
运行项目卡在log4j初始化或c3p0初始化
c3p0数据源项目启动卡死
com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5 [built 02-January-2015 13:25:04 -0500; debug? true; trace: 10]检查 mybatis的xml配置文件是否存在编写错误,Java实体类和数据库字段映射时的jdbcType = “INTEGER” 一定不能写成“Integer
C3P0数据库连接池配置,项目启动时初始化(servlet)
java配置:   public static ComboPooledDataSource dataSource;   /** * 从连接池中获取连接 * @return * @throws SQLException  */ public static Connection getConnection(){ Connection con = null; try { con
Tomcat启动时执行到Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource...时卡住
在Eclipse中启动Tomcat时,当执行到Initializing c3p0 pool… com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, auto
tomcat启动报Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource异常
今天启动tomcat的时候 报C3p0异常 ,连tomcat主页都访问不了, 在网上百度啦好多都没有用.最后终于搞好啦 最简单的办法就是把tomcat 包下的webapps的文件给删啦 最大可能是缓存造成的 不用担心删过之后tomcat会自己给你建一个
Initializing c3p0 pool... 卡死不动 , 这绝壁是bug....
c3p0 连接服务器   我艹这bug 真特么服了 ... 其他都没事   只要名字改成username 同时用el表达式获取  然后jvm就卡死不动  艹.... 名字前要加jdbc
eclipse里启动tomcat报错,c3p0相关
在eclipse 里启动tomcat,程序报错: 2011-08-25 06:22:06,163 WARN  [com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector] com.mchange.