xautlx / s2jh

A Java/J2EE development framework for enterprise system based on Struts/Spring/JPA/Hibernate and jquery/bootstrap
GNU Lesser General Public License v3.0
321 stars 242 forks source link

prototype.war 包部署到 tomcat 下出错 #70

Closed flanliulf closed 10 years ago

flanliulf commented 10 years ago

环境为 win7 64位,apache-tomcat-7.0.54,jdk 1.7.0_60,版本,启动报错, localhost:8080可以访问,但是 localhost:8080/prototype 访问不了,错误日志如下: .beans.factory.BeanCreationException: Error creating bean with name 'quartzClusterScheduler' defined in file [ C:\apache-tomcat-7.0.54\webapps\prototype\WEB-INF\classes\service\spring-schedule.xml]: Invocation of init met hod failed; nested exception is org.quartz.SchedulerException: Registration of jobs and triggers failed: null [See nested exception: java.lang.reflect.UndeclaredThrowableException] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProper tyValues(AutowiredAnnotationBeanPostProcessor.java:288) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractA utowireCapableBeanFactory.java:1116) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractA utowireCapableBeanFactory.java:519) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAut owireCapableBeanFactory.java:458) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java: 295) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleto nBeanRegistry.java:223) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:29 2) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefiniti onValueResolver.java:323) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 28 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.spri ngframework.scheduling.quartz.SchedulerFactoryBean lab.s2jh.schedule.service.JobBeanCfgService.quartzClusterSc heduler; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzClusterScheduler' defined in file [C:\apache-tomcat-7.0.54\webapps\prototype\WEB-INF\classes\serv ice\spring-schedule.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerException: Registration of jobs and triggers failed: null [See nested exception: java.lang.reflect.UndeclaredThrowableEx ception] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldEle ment.inject(AutowiredAnnotationBeanPostProcessor.java:514) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87) ~[ spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProper tyValues(AutowiredAnnotationBeanPostProcessor.java:285) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 36 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'quartzClust erScheduler' defined in file [C:\apache-tomcat-7.0.54\webapps\prototype\WEB-INF\classes\service\spring-schedul e.xml]: Invocation of init method failed; nested exception is org.quartz.SchedulerException: Registration of j obs and triggers failed: null [See nested exception: java.lang.reflect.UndeclaredThrowableException] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstrac tAutowireCapableBeanFactory.java:1482) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractA utowireCapableBeanFactory.java:521) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAut owireCapableBeanFactory.java:458) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java: 295) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingleto nBeanRegistry.java:223) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:29 2) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(Default ListableBeanFactory.java:912) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultLis tableBeanFactory.java:855) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultLista bleBeanFactory.java:770) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldEle ment.inject(AutowiredAnnotationBeanPostProcessor.java:486) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 38 common frames omitted Caused by: org.quartz.SchedulerException: Registration of jobs and triggers failed: null at org.springframework.scheduling.quartz.SchedulerAccessor.registerJobsAndTriggers(SchedulerAccessor.j ava:322) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at lab.s2jh.schedule.ExtSchedulerFactoryBean.registerJobsAndTriggers(ExtSchedulerFactoryBean.java:118) ~[common-service-1.0.0.jar:na] at org.springframework.scheduling.quartz.SchedulerFactoryBean.afterPropertiesSet(SchedulerFactoryBean. java:511) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Abst ractAutowireCapableBeanFactory.java:1541) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(Abstrac tAutowireCapableBeanFactory.java:1479) ~[spring-beans-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 48 common frames omitted Caused by: java.lang.reflect.UndeclaredThrowableException: null at org.springframework.util.ReflectionUtils.rethrowRuntimeException(ReflectionUtils.java:291) ~[spring -core-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.util.ReflectionUtils.handleInvocationTargetException(ReflectionUtils.java:270) ~[spring-core-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.util.ReflectionUtils.handleReflectionException(ReflectionUtils.java:254) ~[spri ng-core-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:194) ~[spring-core-3.2.4 .RELEASE.jar:3.2.4.RELEASE] at org.springframework.scheduling.quartz.SchedulerAccessor.triggerExists(SchedulerAccessor.java:432) ~ [spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.scheduling.quartz.SchedulerAccessor.addTriggerToScheduler(SchedulerAccessor.jav a:359) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] at org.springframework.scheduling.quartz.SchedulerAccessor.registerJobsAndTriggers(SchedulerAccessor.j ava:303) ~[spring-context-support-3.2.4.RELEASE.jar:3.2.4.RELEASE] ... 52 common frames omitted Caused by: org.quartz.JobPersistenceException: Couldn't retrieve trigger: Table "QRTZ_TRIGGERS" not found; SQL statement: SELECT * FROM QRTZ_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [42102-170] at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1533) ~[quartz-2. 2.1.jar:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport$12.execute(JobStoreSupport.java:1522) ~[quartz-2.2.1.j ar:na] at org.quartz.impl.jdbcjobstore.JobStoreCMT.executeInLock(JobStoreCMT.java:245) ~[quartz-2.2.1.jar:na]

    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeWithoutLock(JobStoreSupport.java:3723) ~[quartz

-2.2.1.jar:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1519) ~[quartz-2. 2.1.jar:na] at org.quartz.core.QuartzScheduler.getTrigger(QuartzScheduler.java:1530) ~[quartz-2.2.1.jar:na] at org.quartz.impl.StdScheduler.getTrigger(StdScheduler.java:508) ~[quartz-2.2.1.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_60] at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:191) ~[spring-core-3.2.4 .RELEASE.jar:3.2.4.RELEASE] ... 55 common frames omitted Caused by: org.hibernate.exception.SQLGrammarException: Table "QRTZ_TRIGGERS" not found; SQL statement: SELECT * FROM QRTZ_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [42102-170] at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java :122) ~[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverte r.java:49) ~[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125) ~[hibernate-c ore-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110) ~[hibernate-c ore-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.continueInvocation(ConnectionProxyH andler.java:146) ~[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.engine.jdbc.internal.proxy.AbstractProxyHandler.invoke(AbstractProxyHandler.java:81) ~[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at com.sun.proxy.$Proxy83.prepareStatement(Unknown Source) ~[na:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_60] at org.quartz.impl.jdbcjobstore.AttributeRestoringConnectionInvocationHandler.invoke(AttributeRestorin gConnectionInvocationHandler.java:73) ~[quartz-2.2.1.jar:na] at com.sun.proxy.$Proxy86.prepareStatement(Unknown Source) ~[na:na] at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:1758) ~[quartz-2.2. 1.jar:na] at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1531) ~[quartz-2. 2.1.jar:na] ... 66 common frames omitted Caused by: org.h2.jdbc.JdbcSQLException: Table "QRTZ_TRIGGERS" not found; SQL statement: SELECT * FROM QRTZ_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ? [42102-170] at org.h2.message.DbException.getJdbcSQLException(DbException.java:329) ~[h2-1.3.170.jar:1.3.170] at org.h2.message.DbException.get(DbException.java:169) ~[h2-1.3.170.jar:1.3.170] at org.h2.message.DbException.get(DbException.java:146) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.readTableOrView(Parser.java:4774) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.readTableFilter(Parser.java:1083) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1689) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parseSelectSimple(Parser.java:1796) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parseSelectSub(Parser.java:1683) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parseSelectUnion(Parser.java:1526) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parseSelect(Parser.java:1514) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parsePrepared(Parser.java:404) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parse(Parser.java:278) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.parse(Parser.java:250) ~[h2-1.3.170.jar:1.3.170] at org.h2.command.Parser.prepareCommand(Parser.java:217) ~[h2-1.3.170.jar:1.3.170] at org.h2.engine.Session.prepareLocal(Session.java:414) ~[h2-1.3.170.jar:1.3.170] at org.h2.engine.Session.prepareCommand(Session.java:363) ~[h2-1.3.170.jar:1.3.170] at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1116) ~[h2-1.3.170.jar:1.3.170] at org.h2.jdbc.JdbcPreparedStatement.(JdbcPreparedStatement.java:74) ~[h2-1.3.170.jar:1.3.170] at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:267) ~[h2-1.3.170.jar:1.3.170] at net.sf.log4jdbc.ConnectionSpy.prepareStatement(ConnectionSpy.java:389) ~[log4jdbc-remix-0.2.7.jar:n a] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.7.0_60] at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.7.0_60] at org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler.continueInvocation(ConnectionProxyH andler.java:138) ~[hibernate-core-4.1.8.Final.jar:4.1.8.Final] ... 76 common frames omitted 00:46:42.645 ERROR o.a.r.c.s.ActivitiServletContextListener[40] - Could not start the Activiti REST API 六月 28, 2014 12:46:42 上午 org.apache.catalina.core.StandardContext startInternal 严重: Error listenerStart 六月 28, 2014 12:46:42 上午 org.apache.catalina.core.StandardContext startInternal 严重: Context [/prototype] startup failed due to previous errors 00:46:42.661 INFO l.s.a.s.AuthLogonHistRefreshListener[60] - ServletContext destroy force setup session user logout time... 六月 28, 2014 12:46:42 上午 org.apache.catalina.core.StandardContext listenerStop 严重: Exception sending context destroyed event to listener instance of class lab.s2jh.auth.security.AuthLogon HistRefreshListener java.lang.IllegalArgumentException: [Assertion failed] - this argument is required; it must not be null at org.springframework.util.Assert.notNull(Assert.java:112) at org.springframework.util.Assert.notNull(Assert.java:123) at lab.s2jh.core.context.SpringContextHolder.getBean(SpringContextHolder.java:25) at lab.s2jh.auth.security.AuthLogonHistRefreshListener.contextDestroyed(AuthLogonHistRefreshListener.j ava:62) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5014) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5659) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

00:46:42.692 DEBUG l.s.c.w.l.ApplicationContextPostListener[112] - Invoke ApplicationContextPostListener conte xtDestroyed 六月 28, 2014 12:46:42 上午 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext 00:46:42.692 DEBUG l.s.c.w.l.ApplicationContextPreListener[23] - Invoke ApplicationContextPreListener contextD estroyed 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 严重: The web application [/prototype] registered the JDBC driver [org.h2.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 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc 严重: The web application [/prototype] registered the JDBC driver [net.sf.log4jdbc.DriverSpy] but failed to un register it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [quartzClusterScheduler_Worker-1 ] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [quartzClusterScheduler_Worker-2 ] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [quartzClusterScheduler_Worker-3 ] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [quartzClusterScheduler_Worker-4 ] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [quartzClusterScheduler_Worker-5 ] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 严重: The web application [/prototype] appears to have started a thread named [quartzClusterScheduler_QuartzSc hedulerThread] but has failed to stop it. This is very likely to create a memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks 严重: The web application [/prototype] created a ThreadLocal with key of type [org.springframework.core.NamedT hreadLocal](value [Transactional resources]) and a value of type [java.util.HashMap](value [{public abstract java.util.List lab.s2jh.schedule.dao.JobBeanCfgDao.findAll%28%29=java.lang.Object@7c9d2597}]) but failed to remov e it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probab le memory leak. 六月 28, 2014 12:46:42 上午 org.apache.catalina.startup.HostConfig deployWAR 信息: Deployment of web application archive C:\apache-tomcat-7.0.54\webapps\prototype.war has finished in 24,9 78 ms 六月 28, 2014 12:46:42 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\apache-tomcat-7.0.54\webapps\docs 六月 28, 2014 12:46:42 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\apache-tomcat-7.0.54\webapps\docs has finished in 109 ms 六月 28, 2014 12:46:42 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\apache-tomcat-7.0.54\webapps\examples 六月 28, 2014 12:46:43 上午 org.apache.catalina.loader.WebappClassLoader loadClass 信息: Illegal access: this web application instance has been stopped already. Could not load java.net.URLEnco der. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to att empt to terminate the thread which caused the illegal access, and has no functional impact. java.lang.IllegalStateException at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1612) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571) at org.quartz.utils.UpdateChecker.urlEncode(UpdateChecker.java:156) at org.quartz.utils.UpdateChecker.buildParamsString(UpdateChecker.java:122) at org.quartz.utils.UpdateChecker.buildUpdateCheckUrl(UpdateChecker.java:114) at org.quartz.utils.UpdateChecker.doCheck(UpdateChecker.java:55) at org.quartz.utils.UpdateChecker.checkForUpdate(UpdateChecker.java:47) at org.quartz.utils.UpdateChecker.run(UpdateChecker.java:39) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source)

六月 28, 2014 12:46:43 上午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: contextInitialized() 六月 28, 2014 12:46:43 上午 org.apache.catalina.core.ApplicationContext log 信息: SessionListener: contextInitialized() 六月 28, 2014 12:46:43 上午 org.apache.catalina.core.ApplicationContext log 信息: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compi ler.TldLocationsCache@1d9d4323') 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\apache-tomcat-7.0.54\webapps\examples has finished in 484 ms 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\apache-tomcat-7.0.54\webapps\host-manager 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\apache-tomcat-7.0.54\webapps\host-manager has finished in 78 ms 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\apache-tomcat-7.0.54\webapps\manager 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\apache-tomcat-7.0.54\webapps\manager has finished in 47 ms 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deploying web application directory C:\apache-tomcat-7.0.54\webapps\ROOT 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory C:\apache-tomcat-7.0.54\webapps\ROOT has finished in 31 ms 六月 28, 2014 12:46:43 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["http-apr-8080"] 六月 28, 2014 12:46:43 上午 org.apache.coyote.AbstractProtocol start 信息: Starting ProtocolHandler ["ajp-apr-8009"] 六月 28, 2014 12:46:43 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in 25903 ms

xautlx commented 10 years ago

没有初始化数据库。默认配置不会初始化数据库:

开发过程需要初始化或重建基础数据可设置为true则自动基于SQL脚本插入数据

jdbc.initialize.database.enable=false

第一次运行改成true,初始化数据库后再改为false

flanliulf commented 10 years ago

好的,试一下