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, automaticTestTable -> null, breakAfterAcquireFailure -> true, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -时卡住,然后会报错:

java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
…..
….

最后发现是Tomcat中webapps目录下有之前发布的项目,其中有项目配置文件有错误,删除掉这些项目重新部署Eclipse中的项目即可。

相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页