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中的项目即可。

猜你喜欢

转载自blog.csdn.net/qq_32651225/article/details/77102765