十一月 28, 2014 8:30:34 下午 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.8.0_05\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Java/jdk1.8.0_05/bin/../jre/bin/client;C:/Java/jdk1.8.0_05/bin/../jre/bin;C:/Java/jdk1.8.0_05/bin/../jre/lib/i386;%PHP_HOME%\ext;C:\Java\jdk1.8.0_05\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;E:\MySql\MySQL\MySQL Utilities 1.3.6\;E:\eclipse;;. 十一月 28, 2014 8:30:34 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin 警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:huijh' did not find a matching property. 十一月 28, 2014 8:30:35 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-8080"] 十一月 28, 2014 8:30:35 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["ajp-bio-8009"] 十一月 28, 2014 8:30:35 下午 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 1629 ms 十一月 28, 2014 8:30:35 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Catalina 十一月 28, 2014 8:30:35 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.54 十一月 28, 2014 8:30:35 下午 org.apache.catalina.loader.WebappClassLoader validateJarFile 信息: validateJarFile(E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class 十一月 28, 2014 8:30:45 下午 org.apache.catalina.startup.TaglibUriRule body 信息: TLD skipped. URI: /struts-tags is already defined log4j:ERROR Could not find value for key log4j.appender.logFile log4j:ERROR Could not instantiate appender named "logFile". [myitem]2014-11-28 20:30:46.406 INFO ContextLoader.initWebApplicationContext(187) | Root WebApplicationContext: initialization started 十一月 28, 2014 8:30:46 下午 org.apache.catalina.core.ApplicationContext log 信息: Initializing Spring root WebApplicationContext [myitem]2014-11-28 20:30:46.533 INFO XmlWebApplicationContext.prepareRefresh(456) | Refreshing Root WebApplicationContext: startup date [Fri Nov 28 20:30:46 CST 2014]; root of context hierarchy [myitem]2014-11-28 20:30:46.732 INFO XmlBeanDefinitionReader.loadBeanDefinitions(315) | Loading XML bean definitions from file [E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\applicationContext-base.xml] [myitem]2014-11-28 20:30:47.224 INFO ClassPathBeanDefinitionScanner.registerDefaultFilters(178) | JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning [myitem]2014-11-28 20:30:47.597 INFO XmlBeanDefinitionReader.loadBeanDefinitions(315) | Loading XML bean definitions from file [E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\applicationContext-quartz.xml] [myitem]2014-11-28 20:30:47.647 INFO ClassPathBeanDefinitionScanner.registerDefaultFilters(178) | JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning [myitem]2014-11-28 20:30:48.206 INFO PropertyPlaceholderConfigurer.loadProperties(177) | Loading properties file from class path resource [jdbc.properties] [myitem]2014-11-28 20:30:48.208 INFO PropertyPlaceholderConfigurer.loadProperties(177) | Loading properties file from class path resource [thread.properties] [myitem]2014-11-28 20:30:48.339 INFO DefaultListableBeanFactory.preInstantiateSingletons(555) | Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@78ff9b: defining beans [AboutAction,BalanceAction,ConsumeDetailAction,FileUploadAction,GetBackPwdAction,HelpAction,IndexAction,ListAction,LoginAction,LogoutAction,LotteryAction,LotteryDetailAction,MyCartAction,NewsAction,ProductsAction,RegsiterAction,SearchAction,SetNamePwdAction,ShareAction,ShareShowAction,TenpayAction,UserAction,AdminIndexAction,baseDao,consumerdetailService,consumetableService,latestlotteryService,newsServiceImpl,productImageService,productService,producttypeServiceImpl,RandomnumberService,recommendServiceImpl,shareServiceImpl,spellbuyproductService,spellbuyrecordService,userService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,propertyConfigurer,dataSource,sessionFactory,hibernateTemplate,transactionManager,smAdvice,org.springframework.aop.config.internalAutoProxyCreator,smMethod,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,taskExecutor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0]; root of factory hierarchy [myitem]2014-11-28 20:30:49.273 INFO MLog.<clinit>(80) | MLog clients using log4j logging. [myitem]2014-11-28 20:30:49.517 INFO C3P0Registry.banner(204) | Initializing c3p0-0.9.1 [built 16-January-2007 14:46:42; debug? true; trace: 10] [myitem]2014-11-28 20:30:49.818 INFO Environment.info(262) | Hibernate 3.3.1.GA [myitem]2014-11-28 20:30:49.835 INFO Environment.info(262) | hibernate.properties not found [myitem]2014-11-28 20:30:49.842 INFO Environment.info(262) | Bytecode provider name : javassist [myitem]2014-11-28 20:30:49.852 INFO Environment.info(262) | using JDK 1.4 java.sql.Timestamp handling [myitem]2014-11-28 20:30:49.986 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Auctionproduct.hbm.xml [myitem]2014-11-28 20:30:50.364 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Auctionproduct -> auctionproduct [myitem]2014-11-28 20:30:50.396 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Auctionrecord.hbm.xml [myitem]2014-11-28 20:30:50.422 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Auctionrecord -> auctionrecord [myitem]2014-11-28 20:30:50.424 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Consumerdetail.hbm.xml [myitem]2014-11-28 20:30:50.437 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Consumerdetail -> consumerdetail [myitem]2014-11-28 20:30:50.439 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Consumetable.hbm.xml [myitem]2014-11-28 20:30:50.450 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Consumetable -> consumetable [myitem]2014-11-28 20:30:50.452 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Latestlottery.hbm.xml [myitem]2014-11-28 20:30:50.463 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Latestlottery -> latestlottery [myitem]2014-11-28 20:30:50.465 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\News.hbm.xml [myitem]2014-11-28 20:30:50.479 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.News -> news [myitem]2014-11-28 20:30:50.480 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Product.hbm.xml [myitem]2014-11-28 20:30:50.490 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Product -> product [myitem]2014-11-28 20:30:50.492 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Productimage.hbm.xml [myitem]2014-11-28 20:30:50.501 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Productimage -> productimage [myitem]2014-11-28 20:30:50.502 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Producttype.hbm.xml [myitem]2014-11-28 20:30:50.516 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Producttype -> producttype [myitem]2014-11-28 20:30:50.517 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Randomnumber.hbm.xml [myitem]2014-11-28 20:30:50.525 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Randomnumber -> randomnumber [myitem]2014-11-28 20:30:50.526 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Recommend.hbm.xml [myitem]2014-11-28 20:30:50.544 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Recommend -> recommend [myitem]2014-11-28 20:30:50.545 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Sharecomments.hbm.xml [myitem]2014-11-28 20:30:50.553 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Sharecomments -> sharecomments [myitem]2014-11-28 20:30:50.554 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Shareimage.hbm.xml [myitem]2014-11-28 20:30:50.561 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Shareimage -> shareimage [myitem]2014-11-28 20:30:50.562 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Shareinfo.hbm.xml [myitem]2014-11-28 20:30:50.570 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Shareinfo -> shareinfo [myitem]2014-11-28 20:30:50.572 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Spellbuyproduct.hbm.xml [myitem]2014-11-28 20:30:50.586 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Spellbuyproduct -> spellbuyproduct [myitem]2014-11-28 20:30:50.588 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Spellbuyrecord.hbm.xml [myitem]2014-11-28 20:30:50.599 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Spellbuyrecord -> spellbuyrecord [myitem]2014-11-28 20:30:50.600 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\User.hbm.xml [myitem]2014-11-28 20:30:50.617 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.User -> user [myitem]2014-11-28 20:30:50.622 INFO Configuration.info(262) | Reading mappings from file: E:\apache-tomcat-7.0.54\webapps\huijh\WEB-INF\classes\com\eypg\pojo\Userbyaddress.hbm.xml [myitem]2014-11-28 20:30:50.629 INFO HbmBinder.info(262) | Mapping class: com.eypg.pojo.Userbyaddress -> userbyaddress [myitem]2014-11-28 20:30:50.631 INFO LocalSessionFactoryBean.buildSessionFactory(777) | Building new Hibernate SessionFactory [myitem]2014-11-28 20:30:50.732 INFO ConnectionProviderFactory.info(262) | Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider [myitem]2014-11-28 20:30:50.866 INFO AbstractPoolBackedDataSource.getPoolManager(462) | Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge163951wd1l3i1lkrprq|fafc94, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge163951wd1l3i1lkrprq|fafc94, idleConnectionTestPeriod -> 60, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://127.0.0.1:3306/database?useUnicode=true&characterEncoding=UTF-8&noAccessToProcedureBodies=true, lastAcquisitionFailureDefaultUser -> null, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 30, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 5, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ] [myitem]2014-11-28 20:31:10.798 WARN ThreadPoolAsynchronousRunner.run(608) | com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@debeff -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks! [myitem]2014-11-28 20:31:10.807 WARN ThreadPoolAsynchronousRunner.run(624) | com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@debeff -- APPARENT DEADLOCK!!! Complete Status: Managed Threads: 5 Active Threads: 5 Active Tasks: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7e3cf2 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@275019 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@97683f (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@10ba520 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@59855f (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4) Pending Tasks: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3cb695 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@193e43d com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@145788a com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1987300 com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@55f5f8 Pool thread stack traces: Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main] java.net.SocketInputStream.socketRead0(Native Method) java.net.SocketInputStream.read(SocketInputStream.java:150) java.net.SocketInputStream.read(SocketInputStream.java:121) com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:100) com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:143) com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:173) com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2911) com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:597) com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1013) com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:408) com.mysql.jdbc.Util.handleNewInstance(Util.java:377) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#4,5,main] java.lang.Thread.sleep(Native Method) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main] java.lang.Thread.sleep(Native Method) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main] com.mysql.jdbc.ConnectionPropertiesImpl.<init>(ConnectionPropertiesImpl.java:694) com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:692) com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) java.lang.reflect.Constructor.newInstance(Constructor.java:408) com.mysql.jdbc.Util.handleNewInstance(Util.java:377) com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#3,5,main] java.lang.Thread.sleep(Native Method) com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:20.685 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@10ba520 -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:20.695 WARN JDBCExceptionReporter.warn(357) | SQL Error: 0, SQLState: null [myitem]2014-11-28 20:31:20.696 ERROR JDBCExceptionReporter.error(454) | Connections could not be acquired from the underlying database! [myitem]2014-11-28 20:31:20.697 WARN SettingsFactory.warn(435) | 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:106) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860) at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779) at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) 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:190) at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:844) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:786) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:547) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074) 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.findAutowireCandidates(DefaultListableBeanFactory.java:844) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:786) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074) 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.findAutowireCandidates(DefaultListableBeanFactory.java:844) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:786) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074) 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:580) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) 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:4973) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) 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.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 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.awaitAvailable(BasicResourcePool.java:1319) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525) ... 70 more [myitem]2014-11-28 20:31:20.750 INFO Dialect.info(262) | Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect [myitem]2014-11-28 20:31:20.760 INFO TransactionFactoryFactory.info(262) | Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory [myitem]2014-11-28 20:31:20.765 INFO TransactionManagerLookupFactory.info(262) | No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended) [myitem]2014-11-28 20:31:20.766 INFO SettingsFactory.info(262) | Automatic flush during beforeCompletion(): disabled [myitem]2014-11-28 20:31:20.767 INFO SettingsFactory.info(262) | Automatic session close at end of transaction: disabled [myitem]2014-11-28 20:31:20.768 INFO SettingsFactory.info(262) | Scrollable result sets: disabled [myitem]2014-11-28 20:31:20.769 INFO SettingsFactory.info(262) | JDBC3 getGeneratedKeys(): disabled [myitem]2014-11-28 20:31:20.770 INFO SettingsFactory.info(262) | Connection release mode: auto [myitem]2014-11-28 20:31:20.772 INFO SettingsFactory.info(262) | Maximum outer join fetch depth: 2 [myitem]2014-11-28 20:31:20.773 INFO SettingsFactory.info(262) | Default batch fetch size: 1 [myitem]2014-11-28 20:31:20.773 INFO SettingsFactory.info(262) | Generate SQL with comments: enabled [myitem]2014-11-28 20:31:20.774 INFO SettingsFactory.info(262) | Order SQL updates by primary key: disabled [myitem]2014-11-28 20:31:20.775 INFO SettingsFactory.info(262) | Order SQL inserts for batching: disabled [myitem]2014-11-28 20:31:20.776 INFO SettingsFactory.info(262) | Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory [myitem]2014-11-28 20:31:20.780 INFO ASTQueryTranslatorFactory.info(262) | Using ASTQueryTranslatorFactory [myitem]2014-11-28 20:31:20.783 INFO SettingsFactory.info(262) | Query language substitutions: {} [myitem]2014-11-28 20:31:20.783 INFO SettingsFactory.info(262) | JPA-QL strict compliance: disabled [myitem]2014-11-28 20:31:20.784 INFO SettingsFactory.info(262) | Second-level cache: enabled [myitem]2014-11-28 20:31:20.785 INFO SettingsFactory.info(262) | Query cache: disabled [myitem]2014-11-28 20:31:20.786 INFO SettingsFactory.info(262) | Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory [myitem]2014-11-28 20:31:20.787 INFO SettingsFactory.info(262) | Optimize cache for minimal puts: disabled [myitem]2014-11-28 20:31:20.788 INFO SettingsFactory.info(262) | Structured second-level cache entries: disabled [myitem]2014-11-28 20:31:20.799 INFO SettingsFactory.info(262) | Echoing all SQL to stdout [myitem]2014-11-28 20:31:20.801 INFO SettingsFactory.info(262) | Statistics: disabled [myitem]2014-11-28 20:31:20.802 INFO SettingsFactory.info(262) | Deleted entity synthetic identifier rollback: disabled [myitem]2014-11-28 20:31:20.803 INFO SettingsFactory.info(262) | Default entity-mode: pojo [myitem]2014-11-28 20:31:20.804 INFO SettingsFactory.info(262) | Named query checking : enabled [myitem]2014-11-28 20:31:20.823 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@7e3cf2 -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:20.841 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@59855f -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:20.846 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@97683f -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:20.852 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@275019 -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:20.921 INFO SessionFactoryImpl.info(262) | building session factory [myitem]2014-11-28 20:31:21.691 INFO SessionFactoryObjectFactory.info(262) | Not binding factory to JNDI, no JNDI name configured [myitem]2014-11-28 20:31:21.881 INFO HibernateTransactionManager.afterPropertiesSet(415) | Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge163951wd1l3i1lkrprq|fafc94, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge163951wd1l3i1lkrprq|fafc94, idleConnectionTestPeriod -> 60, initialPoolSize -> 10, jdbcUrl -> jdbc:mysql://127.0.0.1:3306/database?useUnicode=true&characterEncoding=UTF-8&noAccessToProcedureBodies=true, lastAcquisitionFailureDefaultUser -> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database', maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 30, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 5, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager [myitem]2014-11-28 20:31:22.801 INFO ThreadPoolTaskExecutor.initialize(115) | Initializing ExecutorService 'taskExecutor' [myitem]2014-11-28 20:31:23.033 INFO ContextLoader.initWebApplicationContext(214) | Root WebApplicationContext: initialization completed in 36618 ms [myitem]2014-11-28 20:31:24.164 INFO XmlConfigurationProvider.info(42) | Parsing configuration file [struts-default.xml] [myitem]2014-11-28 20:31:24.358 ERROR Dispatcher.error(38) | Dispatcher initialization failed Unable to load configuration. - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485) 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.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 16 more Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml:29:72 - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 19 more 十一月 28, 2014 8:31:24 下午 org.apache.catalina.core.StandardContext filterStart 严重: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428) at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69) at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51) at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4809) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485) 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.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: Unable to load configuration. - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69) at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371) at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415) ... 14 more Caused by: Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:232) at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101) at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:180) at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66) ... 16 more Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.2.1.jar!/struts-default.xml:29:72 - bean - jar:file:/E:/apache-tomcat-7.0.54/webapps/huijh/WEB-INF/lib/struts2-core-2.3.4.1.jar!/struts-default.xml:29:72 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:216) ... 19 more 十一月 28, 2014 8:31:24 下午 org.apache.catalina.core.StandardContext startInternal 严重: Error filterStart 十一月 28, 2014 8:31:24 下午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/huijh] startup failed due to previous errors 十一月 28, 2014 8:31:24 下午 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext [myitem]2014-11-28 20:31:24.463 INFO XmlWebApplicationContext.doClose(1002) | Closing Root WebApplicationContext: startup date [Fri Nov 28 20:30:46 CST 2014]; root of context hierarchy [myitem]2014-11-28 20:31:24.464 INFO DefaultListableBeanFactory.destroySingletons(422) | Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@78ff9b: defining beans [AboutAction,BalanceAction,ConsumeDetailAction,FileUploadAction,GetBackPwdAction,HelpAction,IndexAction,ListAction,LoginAction,LogoutAction,LotteryAction,LotteryDetailAction,MyCartAction,NewsAction,ProductsAction,RegsiterAction,SearchAction,SetNamePwdAction,ShareAction,ShareShowAction,TenpayAction,UserAction,AdminIndexAction,baseDao,consumerdetailService,consumetableService,latestlotteryService,newsServiceImpl,productImageService,productService,producttypeServiceImpl,RandomnumberService,recommendServiceImpl,shareServiceImpl,spellbuyproductService,spellbuyrecordService,userService,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,propertyConfigurer,dataSource,sessionFactory,hibernateTemplate,transactionManager,smAdvice,org.springframework.aop.config.internalAutoProxyCreator,smMethod,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,taskExecutor,org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter#0]; root of factory hierarchy [myitem]2014-11-28 20:31:24.515 INFO ThreadPoolTaskExecutor.shutdown(150) | Shutting down ExecutorService 'taskExecutor' [myitem]2014-11-28 20:31:24.520 INFO LocalSessionFactoryBean.destroy(246) | Closing Hibernate SessionFactory [myitem]2014-11-28 20:31:24.521 INFO SessionFactoryImpl.info(262) | closing [myitem]2014-11-28 20:31:24.529 WARN BasicResourcePool.run(1876) | com.mchange.v2.resourcepool.BasicResourcePool@8e15c8 -- Thread unexpectedly interrupted while performing an acquisition attempt. java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:24.536 WARN BasicResourcePool.run(1876) | com.mchange.v2.resourcepool.BasicResourcePool@8e15c8 -- Thread unexpectedly interrupted while performing an acquisition attempt. java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:24.536 WARN BasicResourcePool.run(1876) | com.mchange.v2.resourcepool.BasicResourcePool@8e15c8 -- Thread unexpectedly interrupted while performing an acquisition attempt. java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) [myitem]2014-11-28 20:31:24.536 WARN BasicResourcePool.run(1876) | com.mchange.v2.resourcepool.BasicResourcePool@8e15c8 -- Thread unexpectedly interrupted while performing an acquisition attempt. java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 严重: The web application [/huijh] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Dispatch-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@24ef5c] but has failed to stop it. This is very likely to create a memory leak. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@24ef5c] but has failed to stop it. This is very likely to create a memory leak. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@24ef5c] but has failed to stop it. This is very likely to create a memory leak. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@24ef5c] but has failed to stop it. This is very likely to create a memory leak. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@24ef5c] but has failed to stop it. This is very likely to create a memory leak. 十一月 28, 2014 8:31:24 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/huijh] appears to have started a thread named [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@24ef5c] but has failed to stop it. This is very likely to create a memory leak. [myitem]2014-11-28 20:31:24.535 WARN BasicResourcePool.run(1876) | com.mchange.v2.resourcepool.BasicResourcePool@8e15c8 -- Thread unexpectedly interrupted while performing an acquisition attempt. java.lang.InterruptedException: sleep interrupted at java.lang.Thread.sleep(Native Method) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1805) at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547) 十一月 28, 2014 8:31:24 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\apache-tomcat-7.0.54\webapps\docs 十一月 28, 2014 8:31:24 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\apache-tomcat-7.0.54\webapps\docs has finished in 160 ms 十一月 28, 2014 8:31:24 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\apache-tomcat-7.0.54\webapps\examples 十一月 28, 2014 8:31:25 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 十一月 28, 2014 8:31:25 下午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 十一月 28, 2014 8:31:25 下午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@65d6c4') 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\apache-tomcat-7.0.54\webapps\examples has finished in 523 ms 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\apache-tomcat-7.0.54\webapps\host-manager 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\apache-tomcat-7.0.54\webapps\host-manager has finished in 99 ms 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\apache-tomcat-7.0.54\webapps\manager 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\apache-tomcat-7.0.54\webapps\manager has finished in 93 ms 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory E:\apache-tomcat-7.0.54\webapps\ROOT 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory E:\apache-tomcat-7.0.54\webapps\ROOT has finished in 105 ms 十一月 28, 2014 8:31:25 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-bio-8080"] 十一月 28, 2014 8:31:25 下午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-bio-8009"] 十一月 28, 2014 8:31:25 下午 org.apache.catalina.startup.Catalina start 信息: Server startup in 50416 ms [myitem]2014-11-28 20:31:39.954 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@193e43d -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255) [myitem]2014-11-28 20:31:39.980 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1987300 -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255) [myitem]2014-11-28 20:31:39.986 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3cb695 -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255) [myitem]2014-11-28 20:31:40.023 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@145788a -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255) [myitem]2014-11-28 20:31:40.028 WARN BasicResourcePool.run(1841) | com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@55f5f8 -- 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). Last acquisition attempt exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'database' at sun.reflect.GeneratedConstructorAccessor17.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.Util.getInstance(Util.java:360) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:978) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3887) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3823) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:870) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1659) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1206) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2234) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2265) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2064) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor12.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at com.mysql.jdbc.Util.handleNewInstance(Util.java:377) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:395) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182) at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137) at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014) at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32) at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810) at com.mchange.v2.async.ThreadPerTaskAsynchronousRunner$TaskThread.run(ThreadPerTaskAsynchronousRunner.java:255)
[myitem]2014-11-2820:31:20.685WARNBasicResourcePool.run(1841)|com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@10ba520--AcquisitionAttemptFailed!!!Clearingpendingacquires.Whiletryingtoacquireaneedednewresource,wefailedtosucceedmorethanthemaximumnumberofallowedacquisitionattempts(30).Lastacquisitionattemptexception:
<spanstyle="color:#E53333;">com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:Unknowndatabase'database'回复<aclass='referer'target='_blank'>@键盘浪人:去看看你的jdbc配置信息都在哪块有最前面报错的那个是什么问题,我明明是引入了相应的jar包的。
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:Unknowndatabase'database'
这不很明显吗?你设置的数据库地址里没有叫“database”这个库
最前面报错的那个是什么问题,我明明是引入了相应的jar包的,我连接那里明明设置的是joe名字的数据库,他为什么还这样提示??
<preclass="brush:java;toolbar:true;auto-links:false;">jdbc.url=jdbc:mysql://localhost:3306/joe?useUnicode=true&characterEncoding=UTF-8&noAccessToProcedureBodies=true怎么说呢,这个报错很明显了,但是连接池这块涉及的东西太多,而且Java是个很系统的东西。建议楼主找个Java玩的好的同事看看,你这么明显是数据库连接池配置错误的问题。
至于数据库连接池配置,要看你的架构了。如果用了spring,那就是XML配置和baseDao的形式去调用。如果说是其他框架和基于servlet的,就要你自己去熟悉连接池的接口,自己去java代码里配置。
我看你是SSH框架,H里怎么配置数据库连接池,我也没玩过,帮不上忙了。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。