usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [ -nonaming ] { -help | start | stop }
2013-8-12 23:31:15 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
2013-8-12 23:31:16 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2013-8-12 23:31:17 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
2013-8-12 23:31:18 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
2013-8-12 23:31:18 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
2013-8-12 23:31:18 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 4304 ms
2013-8-12 23:31:18 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2013-8-12 23:31:18 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.41
2013-08-12 23:31:21,950 INFO (org.springframework.web.context.ContextLoader:174) - Root WebApplicationContext: initialization started
2013-8-12 23:31:21 org.apache.catalina.core.ApplicationContext log
信息: Loading Spring root WebApplicationContext
2013-08-12 23:31:22,035 INFO (org.springframework.core.CollectionFactory:76) - JDK 1.4+ collections available
2013-08-12 23:31:22,074 INFO (org.springframework.core.CollectionFactory:80) - Commons Collections 3.x available
2013-08-12 23:31:22,141 INFO (org.springframework.beans.factory.xml.XmlBeanDefinitionReader:347) - Loading XML bean definitions from ServletContext resource [/WEB-INF/applicationContext.xml]
2013-08-12 23:31:22,595 INFO (org.springframework.web.context.support.XmlWebApplicationContext:100) - Bean factory for application context [Root WebApplicationContext]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,transactionInterceptor,ProxyCreator,adminService,voteService,voteContextService,voterService,adminDao,voteDao,voteContextDao,voterDao,login,newvote,newVoteContext,showVote,searchVote,findVote,findOneVote,delVoteContext,addOneVoteContext,updateVoteContext,updateVote,voting,showVoting,showVotingContext,showVotingResult,changepwd,createadmin,checkVoter,addVoter,logout]; root of BeanFactory hierarchy
2013-08-12 23:31:22,613 INFO (org.springframework.web.context.support.XmlWebApplicationContext:324) - 33 beans defined in application context [Root WebApplicationContext]
2013-08-12 23:31:22,823 INFO (org.springframework.aop.framework.DefaultAopProxyFactory:59) - CGLIB2 available: proxyTargetClass feature enabled
2013-08-12 23:31:22,907 INFO (org.springframework.web.context.support.XmlWebApplicationContext:894) - Bean 'ProxyCreator' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2013-08-12 23:31:22,911 INFO (org.springframework.web.context.support.XmlWebApplicationContext:475) - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1a32ea4]
2013-08-12 23:31:22,917 INFO (org.springframework.web.context.support.XmlWebApplicationContext:497) - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1d7fc31]
2013-08-12 23:31:22,923 INFO (org.springframework.ui.context.support.UiApplicationContextUtils:83) - Unable to locate ThemeSource with name 'themeSource': using default [org.springframework.ui.context.support.ResourceBundleThemeSource@11ed166]
2013-08-12 23:31:22,925 INFO (org.springframework.beans.factory.support.DefaultListableBeanFactory:278) - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [dataSource,sessionFactory,transactionManager,transactionInterceptor,ProxyCreator,adminService,voteService,voteContextService,voterService,adminDao,voteDao,voteContextDao,voterDao,login,newvote,newVoteContext,showVote,searchVote,findVote,findOneVote,delVoteContext,addOneVoteContext,updateVoteContext,updateVote,voting,showVoting,showVotingContext,showVotingResult,changepwd,createadmin,checkVoter,addVoter,logout]; root of BeanFactory hierarchy]
2013-08-12 23:31:22,988 INFO (com.mchange.v2.log.MLog:80) - MLog clients using log4j logging.
2013-08-12 23:31:23,086 INFO (com.mchange.v2.c3p0.C3P0Registry:77) - Initializing c3p0-0.9.0.4 [built 23-January-2006 22:20:29 -0500; debug? true; trace: 10]
2013-08-12 23:31:23,329 INFO (org.hibernate.cfg.Environment:500) - Hibernate 3.2 cr4
2013-08-12 23:31:23,334 INFO (org.hibernate.cfg.Environment:533) - hibernate.properties not found
2013-08-12 23:31:23,339 INFO (org.hibernate.cfg.Environment:667) - Bytecode provider name : cglib
2013-08-12 23:31:23,349 INFO (org.hibernate.cfg.Environment:584) - using JDK 1.4 java.sql.Timestamp handling
2013-08-12 23:31:23,718 INFO (org.hibernate.cfg.HbmBinder:300) - Mapping class: com.cjg.domain.Admin -> admin
2013-08-12 23:31:23,762 INFO (org.hibernate.cfg.HbmBinder:300) - Mapping class: com.cjg.domain.Vote -> vote
2013-08-12 23:31:23,778 INFO (org.hibernate.cfg.HbmBinder:300) - Mapping class: com.cjg.domain.Voter -> voter
2013-08-12 23:31:23,787 INFO (org.hibernate.cfg.HbmBinder:300) - Mapping class: com.cjg.domain.Votecontext -> votecontext
2013-08-12 23:31:23,788 INFO (org.springframework.orm.hibernate3.LocalSessionFactoryBean:738) - Building new Hibernate SessionFactory
2013-08-12 23:31:23,949 INFO (org.hibernate.connection.ConnectionProviderFactory:72) - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2013-08-12 23:31:24,030 INFO (com.mchange.v2.c3p0.PoolBackedDataSource:257) - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource@179b7b0[ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 179b7b0, idleConnectionTestPeriod -> -1, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost/vote, loginTimeout -> 0, maxIdleTime -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ]
2013-08-12 23:31:53,920 WARN (com.mchange.v2.resourcepool.BasicResourcePool:1224) - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@f2f0d0 -- 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).
2013-08-12 23:31:53,945 WARN (org.hibernate.util.JDBCExceptionReporter:71) - SQL Error: 0, SQLState: null
2013-08-12 23:31:53,947 ERROR (org.hibernate.util.JDBCExceptionReporter:72) - Connections could not be acquired from the underlying database!
2013-08-12 23:31:53,957 WARN (org.hibernate.cfg.SettingsFactory:109) - Could not obtain connection metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:264)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:94)
at com.mchange.v2.c3p0.ComboPooledDataSource.getConnection(ComboPooledDataSource.java:521)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:76)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1933)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1216)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:972)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:260)
... 32 more
2013-08-12 23:31:53,965 WARN (com.mchange.v2.resourcepool.BasicResourcePool:1224) - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@13bc30a -- 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).
2013-08-12 23:31:54,015 INFO (org.hibernate.dialect.Dialect:141) - Using dialect: org.hibernate.dialect.MySQLDialect
2013-08-12 23:31:54,025 INFO (org.hibernate.transaction.TransactionFactoryFactory:31) - Using default transaction strategy (direct JDBC transactions)
2013-08-12 23:31:54,042 INFO (org.hibernate.transaction.TransactionManagerLookupFactory:33) - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2013-08-12 23:31:54,043 INFO (org.hibernate.cfg.SettingsFactory:134) - Automatic flush during beforeCompletion(): disabled
2013-08-12 23:31:54,043 INFO (org.hibernate.cfg.SettingsFactory:138) - Automatic session close at end of transaction: disabled
2013-08-12 23:31:54,044 INFO (org.hibernate.cfg.SettingsFactory:153) - Scrollable result sets: disabled
2013-08-12 23:31:54,045 INFO (org.hibernate.cfg.SettingsFactory:161) - JDBC3 getGeneratedKeys(): disabled
2013-08-12 23:31:54,046 INFO (org.hibernate.cfg.SettingsFactory:169) - Connection release mode: on_close
2013-08-12 23:31:54,047 INFO (org.hibernate.cfg.SettingsFactory:193) - Maximum outer join fetch depth: 2
2013-08-12 23:31:54,047 INFO (org.hibernate.cfg.SettingsFactory:196) - Default batch fetch size: 1
2013-08-12 23:31:54,047 INFO (org.hibernate.cfg.SettingsFactory:200) - Generate SQL with comments: disabled
2013-08-12 23:31:54,048 INFO (org.hibernate.cfg.SettingsFactory:204) - Order SQL updates by primary key: disabled
2013-08-12 23:31:54,048 INFO (org.hibernate.cfg.SettingsFactory:369) - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2013-08-12 23:31:54,054 INFO (org.hibernate.hql.ast.ASTQueryTranslatorFactory:24) - Using ASTQueryTranslatorFactory
2013-08-12 23:31:54,055 INFO (org.hibernate.cfg.SettingsFactory:212) - Query language substitutions: {}
2013-08-12 23:31:54,055 INFO (org.hibernate.cfg.SettingsFactory:217) - JPA-QL strict compliance: disabled
2013-08-12 23:31:54,055 INFO (org.hibernate.cfg.SettingsFactory:222) - Second-level cache: enabled
2013-08-12 23:31:54,056 INFO (org.hibernate.cfg.SettingsFactory:226) - Query cache: disabled
2013-08-12 23:31:54,056 INFO (org.hibernate.cfg.SettingsFactory:356) - Cache provider: org.hibernate.cache.NoCacheProvider
2013-08-12 23:31:54,057 INFO (org.hibernate.cfg.SettingsFactory:241) - Optimize cache for minimal puts: disabled
2013-08-12 23:31:54,058 INFO (org.hibernate.cfg.SettingsFactory:250) - Structured second-level cache entries: disabled
2013-08-12 23:31:54,068 INFO (org.hibernate.cfg.SettingsFactory:277) - Statistics: disabled
2013-08-12 23:31:54,068 INFO (org.hibernate.cfg.SettingsFactory:281) - Deleted entity synthetic identifier rollback: disabled
2013-08-12 23:31:54,068 INFO (org.hibernate.cfg.SettingsFactory:296) - Default entity-mode: pojo
2013-08-12 23:31:54,206 INFO (org.hibernate.impl.SessionFactoryImpl:161) - building session factory
2013-08-12 23:31:54,685 INFO (org.hibernate.impl.SessionFactoryObjectFactory:82) - Not binding factory to JNDI, no JNDI name configured
2013-08-12 23:31:54,699 INFO (org.hibernate.tool.hbm2ddl.SchemaUpdate:115) - Running hbm2ddl schema update
2013-08-12 23:31:54,699 INFO (org.hibernate.tool.hbm2ddl.SchemaUpdate:126) - fetching database metadata
2013-08-12 23:32:24,051 WARN (com.mchange.v2.resourcepool.BasicResourcePool:1224) - com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@48fbc0 -- 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).
2013-08-12 23:32:24,051 WARN (org.hibernate.util.JDBCExceptionReporter:71) - SQL Error: 0, SQLState: null
2013-08-12 23:32:24,052 ERROR (org.hibernate.util.JDBCExceptionReporter:72) - Connections could not be acquired from the underlying database!
2013-08-12 23:32:24,052 ERROR (org.hibernate.tool.hbm2ddl.SchemaUpdate:134) - could not get database metadata
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:264)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:94)
at com.mchange.v2.c3p0.ComboPooledDataSource.getConnection(ComboPooledDataSource.java:521)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:27)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:127)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:314)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:972)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:260)
... 33 more
2013-08-12 23:32:24,056 ERROR (org.hibernate.tool.hbm2ddl.SchemaUpdate:165) - could not complete schema update
java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:104)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:264)
at com.mchange.v2.c3p0.PoolBackedDataSource.getConnection(PoolBackedDataSource.java:94)
at com.mchange.v2.c3p0.ComboPooledDataSource.getConnection(ComboPooledDataSource.java:521)
at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:27)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:127)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:314)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1218)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)
at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
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.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAcquire(BasicResourcePool.java:972)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:208)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:260)
... 33 more
2013-08-12 23:32:24,133 INFO (org.springframework.orm.hibernate3.HibernateTransactionManager:373) - Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource@179b7b0[ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 179b7b0, idleConnectionTestPeriod -> -1, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost/vote, loginTimeout -> 0, maxIdleTime -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
2013-08-12 23:32:24,326 INFO (org.springframework.web.context.ContextLoader:189) - Using context class [org.springframework.web.context.support.XmlWebApplicationContext] for root WebApplicationContext
2013-08-12 23:32:24,326 INFO (org.springframework.web.context.ContextLoader:199) - Root WebApplicationContext: initialization completed in 62376 ms
2013-08-12 23:32:24,585 INFO (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:140) - Parsing configuration file [struts-default.xml]
2013-08-12 23:32:24,675 INFO (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:140) - Parsing configuration file [struts-plugin.xml]
2013-08-12 23:32:24,703 INFO (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider:140) - Parsing configuration file [struts.xml]
2013-08-12 23:32:24,706 WARN (org.apache.struts2.config.Settings:143) - Settings: Could not parse struts.locale setting, substituting default VM locale
2013-08-12 23:32:24,716 INFO (org.apache.struts2.config.BeanSelectionProvider:185) - Loading global messages from globalMessages
2013-08-12 23:32:24,775 INFO (org.apache.struts2.spring.StrutsSpringObjectFactory:55) - Initializing Struts-Spring integration...
2013-08-12 23:32:24,777 INFO (com.opensymphony.xwork2.spring.SpringObjectFactory:71) - Setting autowire strategy to name
2013-08-12 23:32:24,778 INFO (org.apache.struts2.spring.StrutsSpringObjectFactory:87) - ... initialized Struts-Spring integration successfully
2013-08-12 23:32:25,158 INFO (com.opensymphony.xwork2.util.ObjectTypeDeterminerFactory:28) - Setting DefaultObjectTypeDeterminer as default ...
2013-8-12 23:32:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\docs
2013-8-12 23:32:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\examples
2013-8-12 23:32:25 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: contextInitialized()
2013-8-12 23:32:25 org.apache.catalina.core.ApplicationContext log
信息: SessionListener: contextInitialized()
2013-8-12 23:32:25 org.apache.catalina.core.ApplicationContext log
信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@1179c1c')
2013-8-12 23:32:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\host-manager
2013-8-12 23:32:25 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\JFreeChart
2013-8-12 23:32:26 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\manager
2013-8-12 23:32:27 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\ROOT
2013-8-12 23:32:27 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:\MyEclipse\apache-tomcat-7.0.41\webapps\Time
2013-8-12 23:32:27 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
2013-8-12 23:32:27 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
2013-8-12 23:32:27 org.apache.catalina.startup.Catalina start
信息: Server startup in 68718 ms