ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN!

 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! 

报错信息:

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Server version:        Apache Tomcat/7.0.70

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Server built:          Jun 15 2016 16:27:45 UTC

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Server number:         7.0.70.0

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Name:               Windows Vista

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: OS Version:            6.1

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Architecture:          amd64

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Java Home:             d:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\jre

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Version:           1.6.0_13-b03

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: JVM Vendor:            Sun Microsystems Inc.

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_BASE:         D:\apache-tomcat-7.0.70

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: CATALINA_HOME:         D:\apache-tomcat-7.0.70

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.home=D:\apache-tomcat-7.0.70

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dcatalina.base=D:\apache-tomcat-7.0.70

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Djava.endorsed.dirs=D:\apache-tomcat-7.0.70/common/endorsed

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Djava.io.tmpdir=D:\apache-tomcat-7.0.70\temp

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Djava.library.path=d:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin;D:\apache-tomcat-7.0.70\bin

2016-8-26 1:47:05 org.apache.catalina.startup.VersionLoggerListener log

信息: Command line argument: -Dsun.io.useCanonCaches=false

2016-8-26 1:47:05 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: d:\Users\Administrator\AppData\Local\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin;D:\apache-tomcat-7.0.70\bin

2016-8-26 1:47:06 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["http-bio-8080"]

2016-8-26 1:47:06 org.apache.coyote.AbstractProtocol init

信息: Initializing ProtocolHandler ["ajp-bio-8009"]

2016-8-26 1:47:06 org.apache.catalina.startup.Catalina load

信息: Initialization processed in 590 ms

2016-8-26 1:47:06 org.apache.catalina.core.StandardService startInternal

信息: Starting service Catalina

2016-8-26 1:47:06 org.apache.catalina.core.StandardEngine startInternal

信息: Starting Servlet Engine: Apache Tomcat/7.0.70

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\docs

2016-8-26 1:47:06 org.apache.tomcat.websocket.server.WsSci onStartup

信息: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available.

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\docs has finished in 396 ms

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\examples

2016-8-26 1:47:06 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: contextInitialized()

2016-8-26 1:47:06 org.apache.catalina.core.ApplicationContext log

信息: SessionListener: contextInitialized()

2016-8-26 1:47:06 org.apache.catalina.core.ApplicationContext log

信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@31a3ca10')

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\examples has finished in 282 ms

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\host-manager

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\host-manager has finished in 55 ms

2016-8-26 1:47:06 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\itcast1024elecp

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/core is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined

2016-8-26 1:47:09 org.apache.catalina.startup.TaglibUriRule body

信息: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined

2016-8-26 1:47:09 org.apache.catalina.core.ApplicationContext log

信息: Initializing Spring root WebApplicationContext

01:47:39,931 ERROR BasicResourcePool:1853 -A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@46377e2a]
01:47:39,935 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!
com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

01:47:39,940 ERROR JDBCExceptionReporter:101 - An SQLException was provoked by the following failure:java.lang.InterruptedException

01:47:39,940 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@482982bf]

01:47:39,942 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

01:47:39,944 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@29565e9d]

01:47:39,944 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

01:47:40,284 ERROR JDBCExceptionReporter:101 - An SQLException was provoked by the following failure:com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource pool

01:47:40,285 ERROR SchemaUpdate:175 - could not get database metadata

java.sql.SQLException: An SQLException was provoked by the following failure:com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource pool

at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)

at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)

at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)

at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)

at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)

at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)

at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:168)

at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:386)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)

at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)

at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)

at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5099)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5615)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

Caused by: com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource pool

at com.mchange.v2.resourcepool.BasicResourcePool.ensureNotBroken(BasicResourcePool.java:1632)

at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:524)

at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)

... 50 more

01:47:40,287 ERROR SchemaUpdate:222 - could not complete schema update

java.sql.SQLException: An SQLException was provoked by the following failure:com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource pool

at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)

at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65)

at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:62)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:531)

at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)

at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)

at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)

at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:168)

at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:386)

at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)

at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)

at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)

at org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)

at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)

at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)

at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5099)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5615)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)

at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)

at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1260)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:2002)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

at java.util.concurrent.FutureTask.run(FutureTask.java:138)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

at java.lang.Thread.run(Thread.java:619)

Caused by: com.mchange.v2.resourcepool.ResourcePoolException: Attempted to use a closed or broken resource pool

at com.mchange.v2.resourcepool.BasicResourcePool.ensureNotBroken(BasicResourcePool.java:1632)

at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:524)

at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)

at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)

... 50 more

2016-8-26 1:47:41 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\itcast1024elecp has finished in 34,436 ms

2016-8-26 1:47:41 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\manager

2016-8-26 1:47:41 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\manager has finished in 62 ms

2016-8-26 1:47:41 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\ROOT

2016-8-26 1:47:41 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\ROOT has finished in 50 ms

2016-8-26 1:47:41 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deploying web application directory D:\apache-tomcat-7.0.70\webapps\struts2_day01p

2016-8-26 1:47:42 org.apache.catalina.startup.TldConfig execute

信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.util.fs.DefaultFileManagerFactory).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

2016-8-26 1:47:42 org.apache.catalina.startup.HostConfig deployDirectory

信息: Deployment of web application directory D:\apache-tomcat-7.0.70\webapps\struts2_day01p has finished in 1,282 ms

2016-8-26 1:47:42 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["http-bio-8080"]

2016-8-26 1:47:42 org.apache.coyote.AbstractProtocol start

信息: Starting ProtocolHandler ["ajp-bio-8009"]

2016-8-26 1:47:42 org.apache.catalina.startup.Catalina start

信息: Server startup in 36602 ms

01:47:59,830 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7b60e796]

01:47:59,830 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

01:47:59,835 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@22509bfc]

01:47:59,835 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

01:47:59,843 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3a65724d]

01:47:59,843 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

01:47:59,864 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@69f480e3]

01:47:59,864 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

01:47:59,866 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@2012a961]

01:47:59,867 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

01:47:59,869 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@173f7175]

01:47:59,870 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)

01:47:59,871 ERROR BasicResourcePool:1853 - A RESOURCE POOL IS PERMANENTLY BROKEN! [com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4631c43f]

01:47:59,872 ERROR BasicResourcePool:866 - com.mchange.v2.resourcepool.BasicResourcePool@6883fde6 -- Unexpectedly broken!!!

com.mchange.v2.resourcepool.ResourcePoolException: Unexpected Break Stack Trace!

at com.mchange.v2.resourcepool.BasicResourcePool.unexpectedBreak(BasicResourcePool.java:866)

at com.mchange.v2.resourcepool.BasicResourcePool.access$1100(BasicResourcePool.java:32)

at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1854)

at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)



弄了三四个小时找不见错误,最后发现是写错了要链接的数据库的名字,导致链接不到数据库,所以说再检查下数据库的配置信息吧,打开数据库对照下数据库名字和配置信息中写的数据库名字

其他可能会有帮助的信息:

这条配置信息

”是DBC的标准参数,用以控制数据源内加载的PreparedStatements数量。但由于预缓存的statements 属于单个connection而不是整个连接池。所以设置这个参数需要考虑到多方面的因素。 如果maxStatements与maxStatementsPerConnection均为0,则缓存被关闭。默认是: 0,如果数据库连接信息写错了添加这条配置信息“”的时候,运行重新启动项目会报错连接不上底层数据库。

所以还是细心一点啊

你可能感兴趣的:(Java学习)