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-standalone.war 独立运行出错 #72

Closed flanliulf closed 10 years ago

flanliulf commented 10 years ago

按照你说的,将pom中有一段注释的去掉,生成完整独立运行包prototype-standalone.war,将jdbc.initialize.database.enable先设置为 true,执行java -jar prototype-standalone.war -Dport=8080 后将 解压出的work文件夹下的jdbc.initialize.database.enable设置为false ,然后再次执行 java -jar prototype-standalone.war -Dport=8080 , 报错: mbp:downloads flanliulf$ java -jar prototype-standalone.war -Dport=8080 2014-07-07 01:38:18.015:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT 01:38:21,490 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 01:38:21,491 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 01:38:21,491 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/flanliulf/Downloads/work/webapp/WEB-INF/classes/logback.xml] 01:38:21,554 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 01:38:21,560 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 01:38:21,569 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT] 01:38:21,585 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 01:38:21,629 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.classic.db.DBAppender] 01:38:21,634 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [DB] 01:38:21,648 |-INFO in ch.qos.logback.core.db.JNDIConnectionSource@53077fc9 - Looking up [java:comp/env/jdbc/s2jh] in JNDI 01:38:21,651 |-ERROR in ch.qos.logback.core.db.JNDIConnectionSource@53077fc9 - Error while getting data source javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) at at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288) at at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325) at at javax.naming.InitialContext.lookup(InitialContext.java:392) at at ch.qos.logback.core.db.JNDIConnectionSource.lookupDataSource(JNDIConnectionSource.java:100) at at ch.qos.logback.core.db.JNDIConnectionSource.getConnection(JNDIConnectionSource.java:58) at at ch.qos.logback.core.db.ConnectionSourceBase.discoverConnectionProperties(ConnectionSourceBase.java:47) at at ch.qos.logback.core.db.JNDIConnectionSource.start(JNDIConnectionSource.java:50) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at at lab.s2jh.core.web.listener.ApplicationContextPreListener.(ApplicationContextPreListener.java:14) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at at java.lang.Class.newInstance0(Class.java:357) at at java.lang.Class.newInstance(Class.java:310) at at org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:725) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1409) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1366) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72) at at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:326) at at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1236) at at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:683) at at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at at org.eclipse.jetty.server.Server.doStart(Server.java:275) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at at lab.s2jh.MainExecutor.createStartServer(MainExecutor.java:47) at at lab.s2jh.MainExecutor.main(MainExecutor.java:18) 01:38:21,652 |-WARN in ch.qos.logback.core.db.JNDIConnectionSource@53077fc9 - Could not discover the dialect to use. java.sql.SQLException: NamingException while looking up DataSource: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at java.sql.SQLException: NamingException while looking up DataSource: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at at ch.qos.logback.core.db.JNDIConnectionSource.getConnection(JNDIConnectionSource.java:66) at at ch.qos.logback.core.db.ConnectionSourceBase.discoverConnectionProperties(ConnectionSourceBase.java:47) at at ch.qos.logback.core.db.JNDIConnectionSource.start(JNDIConnectionSource.java:50) at at ch.qos.logback.core.joran.action.NestedComplexPropertyIA.end(NestedComplexPropertyIA.java:167) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at at lab.s2jh.core.web.listener.ApplicationContextPreListener.(ApplicationContextPreListener.java:14) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at at java.lang.Class.newInstance0(Class.java:357) at at java.lang.Class.newInstance(Class.java:310) at at org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:725) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1409) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1366) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72) at at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:326) at at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1236) at at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:683) at at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at at org.eclipse.jetty.server.Server.doStart(Server.java:275) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at at lab.s2jh.MainExecutor.createStartServer(MainExecutor.java:47) at at lab.s2jh.MainExecutor.main(MainExecutor.java:18) 01:38:21,656 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@17:13 - RuntimeException in Action for tag [appender] java.lang.IllegalStateException: DBAppender cannot function if the JDBC driver does not support getGeneratedKeys method and without a specific SQL dialect at java.lang.IllegalStateException: DBAppender cannot function if the JDBC driver does not support getGeneratedKeys method and without a specific SQL dialect at at ch.qos.logback.core.db.DBAppenderBase.start(DBAppenderBase.java:62) at at ch.qos.logback.classic.db.DBAppender.start(DBAppender.java:93) at at ch.qos.logback.core.joran.action.AppenderAction.end(AppenderAction.java:96) at at ch.qos.logback.core.joran.spi.Interpreter.callEndAction(Interpreter.java:318) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:197) at at ch.qos.logback.core.joran.spi.Interpreter.endElement(Interpreter.java:183) at at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:62) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:157) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:143) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:106) at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:56) at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75) at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148) at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84) at at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:54) at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128) at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:107) at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:295) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:269) at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at at lab.s2jh.core.web.listener.ApplicationContextPreListener.(ApplicationContextPreListener.java:14) at at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at at java.lang.Class.newInstance0(Class.java:357) at at java.lang.Class.newInstance(Class.java:310) at at org.eclipse.jetty.servlet.ServletContextHandler$Context.createListener(ServletContextHandler.java:725) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.newListenerInstance(StandardDescriptorProcessor.java:1409) at at org.eclipse.jetty.webapp.StandardDescriptorProcessor.visitListener(StandardDescriptorProcessor.java:1366) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at at java.lang.reflect.Method.invoke(Method.java:597) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.visit(IterativeDescriptorProcessor.java:85) at at org.eclipse.jetty.webapp.IterativeDescriptorProcessor.process(IterativeDescriptorProcessor.java:72) at at org.eclipse.jetty.webapp.MetaData.resolve(MetaData.java:326) at at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1236) at at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:683) at at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:480) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95) at at org.eclipse.jetty.server.Server.doStart(Server.java:275) at at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at at lab.s2jh.MainExecutor.createStartServer(MainExecutor.java:47) at at lab.s2jh.MainExecutor.main(MainExecutor.java:18) 01:38:21,656 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.struts2.dispatcher] to WARN 01:38:21,656 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.apache.struts2.dispatcher] to false 01:38:21,656 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[org.apache.struts2.dispatcher] 01:38:21,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [DB] to Logger[org.apache.struts2.dispatcher] 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [lab] to DEBUG 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [lab] to false 01:38:21,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[lab] 01:38:21,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [DB] to Logger[lab] 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.sqlonly] to DEBUG 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [jdbc.sqlonly] to false 01:38:21,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[jdbc.sqlonly] 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [jdbc.resultsettable] to WARN 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [jdbc.resultsettable] to false 01:38:21,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[jdbc.resultsettable] 01:38:21,657 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN 01:38:21,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT] 01:38:21,658 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [DB] to Logger[ROOT] 01:38:21,658 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 01:38:21,660 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@49f4bcf7 - Registering current configuration as safe fallback point

01:38:22.007 DEBUG l.s.c.w.l.ApplicationContextPreListener[18] - Invoke ApplicationContextPreListener contextInitialized
2014-07-07 01:38:22.020:INFO:/s2jh:Initializing Spring root WebApplicationContext 01:38:24.825 INFO l.s.c.ExtPropertyPlaceholderConfigurer[172] - Loading properties file from class path resource [application.properties]
01:38:24.845 INFO l.s.c.ExtPropertyPlaceholderConfigurer[24] - Putting PropertyPlaceholder 11 datas into cache...
01:38:24.958 INFO l.s.c.d.h.H2EmbeddedFileDatabaseConfigurer[48] - Using H2 EmbeddedFileDatabase: /Users/flanliulf/Downloads/h2/ssms
01:38:25.394 WARN org.hibernate.ejb.Ejb3Configuration[1132] - HHH000144: hibernate.connection.autocommit = false breaks the EJB3 specification
01:38:26.830 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.spi.UpdateTimestampsCache]; using defaults.
01:38:26.837 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [org.hibernate.cache.internal.StandardQueryCache]; using defaults.
01:38:27.667 WARN org.hibernate.id.UUIDHexGenerator[59] - HHH000409: Using org.hibernate.id.UUIDHexGenerator which does not generate IETF RFC 4122 compliant UUID values; consider using org.hibernate.id.UUIDGenerator instead
01:38:27.676 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.Role]; using defaults.
01:38:27.819 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.demo.entity.Demo]; using defaults.
01:38:27.831 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.system.entity.AuditLog]; using defaults.
01:38:27.873 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.sys.entity.DataDict]; using defaults.
01:38:27.899 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.rpt.entity.ReportDef]; using defaults.
01:38:27.924 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.finance.entity.AccountSubject]; using defaults.
01:38:27.954 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.OrgCompany]; using defaults.
01:38:27.970 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.sys.entity.AttachmentFile]; using defaults.
01:38:27.996 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.finance.entity.BizTradeUnit]; using defaults.
01:38:28.035 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.system.entity.StandardSystemFile]; using defaults.
01:38:28.113 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.sale.entity.SaleDeliveryDetail]; using defaults.
01:38:28.144 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.system.entity.RevisionTask]; using defaults.
01:38:28.210 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.system.entity.StandardSystem]; using defaults.
01:38:28.240 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.schedule.entity.JobRunHist]; using defaults.
01:38:28.269 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.profile.entity.ProfileParamVal]; using defaults.
01:38:28.288 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.OrgPosition]; using defaults.
01:38:28.304 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.profile.entity.ProfileParamDef]; using defaults.
01:38:28.344 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.system.entity.YearTask]; using defaults.
01:38:28.395 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.profile.entity.SimpleParamVal]; using defaults.
01:38:28.408 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.sys.entity.ConfigProperty]; using defaults.
01:38:28.439 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.UserR2Role]; using defaults.
01:38:28.478 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.sys.entity.PubPost]; using defaults.
01:38:28.496 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.rpt.entity.ReportDefR2Role]; using defaults.
01:38:28.537 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.Department]; using defaults.
01:38:28.554 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.UserR2Position]; using defaults.
01:38:28.562 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.sys.entity.PubPostRead]; using defaults.
01:38:28.596 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.sale.entity.SaleDelivery]; using defaults.
01:38:28.617 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.PersistentLogin]; using defaults.
01:38:28.621 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.OrgDepartment]; using defaults.
01:38:28.639 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.RoleR2Privilege]; using defaults.
01:38:28.668 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.stock.entity.StorageLocation]; using defaults.
01:38:28.687 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.schedule.entity.JobBeanCfg]; using defaults.
01:38:28.705 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.biz.md.entity.Commodity]; using defaults.
01:38:28.717 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.rpt.entity.ReportParam]; using defaults.
01:38:28.733 WARN o.h.c.e.AbstractEhcacheRegionFactory[180] - HHH020003: Could not find a specific ehcache configuration for cache named [lab.s2jh.auth.entity.User]; using defaults.
01:38:29.191 DEBUG jdbc.sqlonly[232] - org.hibernate.tool.hbm2ddl.DatabaseMetadata.initSequences(DatabaseMetadata.java:149)

  1. select sequence_name from information_schema.sequences
    01:38:31.249 DEBUG jdbc.sqlonly[232] - org.apache.ibatis.executor.statement.PreparedStatementHandler.query(PreparedStatementHandler.java:56)
  2. select * from ACT_GEPROPERTY where NAME = 'schema.version'
    01:38:32.164 INFO l.s.schedule.ExtSchedulerFactoryBean[552] - Loading Quartz config from [class path resource [quartz-cluster.properties]]
    01:38:32.271 DEBUG l.s.schedule.ExtSchedulerFactoryBean[57] - Invoking registerJobsAndTriggers...
    01:38:32.376 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  3. select jobbeancfg0.id as id32, jobbeancfg0_.acl_code as acl232, jobbeancfg0_.acl_type as acl332, jobbeancfg0_.created_by as created432, jobbeancfg0_.created_dt as created532, jobbeancfg0_.updated_by as updated632, jobbeancfg0_.updated_dt as updated732, jobbeancfg0.version as version32, jobbeancfg0_.auto_startup as auto932, jobbeancfg0_.cron_expression as cron1032, jobbeancfg0_.description as descrip1132, jobbeancfg0_.job_class as job1232, jobbeancfg0_.log_run_hist as log1332, jobbeancfg0_.result_template as result1432, jobbeancfg0_.run_within_cluster as run1532 from tbl_job_beancfg jobbeancfg0
    01:38:32.423 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  4. SELECT * FROM QRTZ_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob.Trigger' AND TRIGGER_GROUP = 'DEFAULT'
    01:38:32.427 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  5. SELECT * FROM QRTZ_LOCKS WHERE SCHED_NAME = 'quartzClusterScheduler' AND LOCK_NAME = 'TRIGGER_ACCESS' FOR UPDATE
    01:38:32.428 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  6. SELECT JOB_NAME FROM QRTZ_JOB_DETAILS WHERE SCHED_NAME = 'quartzClusterScheduler' AND JOB_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob' AND JOB_GROUP = 'DEFAULT'
    01:38:32.437 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  7. UPDATE QRTZ_JOB_DETAILS SET DESCRIPTION = NULL, JOB_CLASS_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob', IS_DURABLE = 1, IS_NONCONCURRENT = 0, IS_UPDATE_DATA = 0, REQUESTS_RECOVERY = 0, JOB_DATA = '<byte[]>' WHERE SCHED_NAME = 'quartzClusterScheduler' AND JOB_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob' AND JOB_GROUP = 'DEFAULT'
    01:38:32.444 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  8. SELECT * FROM QRTZ_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob.Trigger' AND TRIGGER_GROUP = 'DEFAULT'
    01:38:32.448 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  9. SELECT * FROM QRTZ_LOCKS WHERE SCHED_NAME = 'quartzClusterScheduler' AND LOCK_NAME = 'TRIGGER_ACCESS' FOR UPDATE
    01:38:32.451 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  10. DELETE FROM QRTZ_SIMPLE_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob.Trigger' AND TRIGGER_GROUP = 'DEFAULT'
    01:38:32.452 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  11. DELETE FROM QRTZ_CRON_TRIGGERS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_NAME = 'lab.s2jh.schedule.job.DatabaseMonitorJob.Trigger' AND TRIGGER_GROUP = 'DEFAULT'
    01:38:32.455 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  12. SELECT TRIGGER_GROUP FROM QRTZ_PAUSED_TRIGGER_GRPS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGER_GROUP = 'DEFAULT'
    01:38:32.456 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  13. SELECT TRIGGER_GROUP FROM QRTZ_PAUSED_TRIGGER_GRPS WHERE SCHED_NAME = 'quartzClusterScheduler' AND TRIGGERGROUP = '$_ALL_GROUPSPAUSED$_'
    01:38:32.462 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  14. INSERT INTO QRTZ_CRON_TRIGGERS (SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, CRON_EXPRESSION, TIME_ZONE_ID) VALUES('quartzClusterScheduler', 'lab.s2jh.schedule.job.DatabaseMonitorJob.Trigger', 'DEFAULT', '0 0 0 * * ?', 'Asia/Shanghai')
    01:38:32.470 INFO l.s.schedule.ExtSchedulerFactoryBean[552] - Loading Quartz config from [class path resource [quartz-ram.properties]]
    01:38:32.478 DEBUG l.s.schedule.ExtSchedulerFactoryBean[57] - Invoking registerJobsAndTriggers...
    01:38:32.480 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  15. select jobbeancfg0.id as id32, jobbeancfg0_.acl_code as acl232, jobbeancfg0_.acl_type as acl332, jobbeancfg0_.created_by as created432, jobbeancfg0_.created_dt as created532, jobbeancfg0_.updated_by as updated632, jobbeancfg0_.updated_dt as updated732, jobbeancfg0.version as version32, jobbeancfg0_.auto_startup as auto932, jobbeancfg0_.cron_expression as cron1032, jobbeancfg0_.description as descrip1132, jobbeancfg0_.job_class as job1232, jobbeancfg0_.log_run_hist as log1332, jobbeancfg0_.result_template as result1432, jobbeancfg0_.run_within_cluster as run1532 from tbl_job_beancfg jobbeancfg0
    01:38:34.478 WARN o.h.hql.internal.ast.HqlSqlWalker[929] - [DEPRECATION] Encountered positional parameter near line 1, column 48. Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
    01:38:34.479 WARN o.h.hql.internal.ast.HqlSqlWalker[929] - [DEPRECATION] Encountered positional parameter near line 1, column 63. Positional parameter are considered deprecated; use named parameters or JPA-style positional parameters instead.
    01:38:34.682 WARN o.s.aop.framework.CglibAopProxy[259] - Unable to proxy method [public final void org.springframework.jdbc.core.support.JdbcDaoSupport.setDataSource(javax.sql.DataSource)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
    01:38:34.683 WARN o.s.aop.framework.CglibAopProxy[259] - Unable to proxy method [public final org.springframework.jdbc.core.JdbcTemplate org.springframework.jdbc.core.support.JdbcDaoSupport.getJdbcTemplate()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
    01:38:34.683 WARN o.s.aop.framework.CglibAopProxy[259] - Unable to proxy method [public final javax.sql.DataSource org.springframework.jdbc.core.support.JdbcDaoSupport.getDataSource()] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
    01:38:34.684 WARN o.s.aop.framework.CglibAopProxy[259] - Unable to proxy method [public final void org.springframework.jdbc.core.support.JdbcDaoSupport.setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate)] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
    01:38:34.684 WARN o.s.aop.framework.CglibAopProxy[259] - Unable to proxy method [public final void org.springframework.dao.support.DaoSupport.afterPropertiesSet() throws java.lang.IllegalArgumentException,org.springframework.beans.factory.BeanInitializationException] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
    01:38:34.943 DEBUG l.s.a.s.FilterInvocationSecurityMetadataSourceImpl[32] - Just return null for getAllConfigAttributes...
    01:38:34.944 WARN l.s.a.s.ExtSecurityInterceptor[141] - Could not validate configuration attributes as the SecurityMetadataSource did not return any attributes from getAllConfigAttributes()
    01:38:35.013 INFO l.s.schedule.ExtSchedulerFactoryBean[653] - Will start Quartz Scheduler [quartzRAMScheduler] in 30 seconds
    01:38:35.015 INFO l.s.schedule.ExtSchedulerFactoryBean[653] - Will start Quartz Scheduler [quartzClusterScheduler] in 10 seconds
    01:38:35.020 DEBUG l.s.s.service.SystemSechduleService[22] - Timely check and refresh PubPost spring cache...
    01:38:35.025 DEBUG l.s.c.w.l.ApplicationContextPostListener[36] - Invoke ApplicationContextPostListener contextInitialized
    01:38:35.026 INFO l.s.c.w.l.ApplicationContextPostListener[45] - [Prototype] init context ...
    01:38:35.041 DEBUG lab.s2jh.sys.service.PubPostService[36] - Finding published post message...
    01:38:35.065 DEBUG jdbc.sqlonly[232] - sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
  16. select pubpost0.id as id41, pubpost0_.acl_code as acl241, pubpost0_.acl_type as acl341, pubpost0_.created_by as created441, pubpost0_.created_dt as created541, pubpost0_.updated_by as updated641, pubpost0_.updated_dt as updated741, pubpost0.version as version41, pubpost0_.attachment_size as attachment941, pubpost0_.backend_show as backend1041, pubpost0_.expire_time as expire1141, pubpost0_.external_link as external1241, pubpost0_.frontend_show as frontend1341, pubpost0_.html_content as html1441, pubpost0_.html_title as html1541, pubpost0_.order_rank as order1641, pubpost0_.publish_time as publish1741, pubpost0_.read_user_count as read1841 from tbl_sys_pubpost pubpost0 where (pubpost0_.publishtime is not null) and pubpost0.publishtime<'07/07/2014 01:38:35.041' and (pubpost0.expiretime>'07/07/2014 01:38:35.041' or pubpost0.expiretime is null) order by pubpost0.publish_time desc
    01:38:35.071 INFO l.s.c.w.l.ApplicationContextPostListener[99] - Put enums data to ServletContext:
    01:38:35.074 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - fileStatusEnum = {GOING=????, REFER=?ο?, ABOLISH=?ϳ?, REVISE=???޶???}
    01:38:35.075 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - privilegeTypeEnum = {URL=URL, BTN=??ť, MENU=?˵?}
    01:38:35.077 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - revisionTaskStatusEnum = {DRAFT=?ݸ?, AUDIT=??????, DONE=???????}
    01:38:35.078 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - dynamicParameterTypeEnum = {DATE=????, TIMESTAMP=????ʱ??, FLOAT=??????, INTEGER=????, BOOLEAN=?Ƿ񲼶???, ENUM=ö?????ݶ???, DATA_DICT_LIST=?????ֵ??????б?, SQL_LIST=SQL??ѯ?????б?, OGNL_LIST=OGNL?﷨??ֵ??, MULTI_TEXT=?????ı?, HTML_TEXT=HTML?ı?, STRING=?????ı?}
    01:38:35.078 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - fileLevelEnum = {LEVEL1=һ???ļ?, LEVEL2=?????ļ?, LEVEL3=?????ļ?}
    01:38:35.078 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - booleanLabel = {true=??, false=??}
    01:38:35.079 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - standardSystemFileRelationEnum = {RELA0=??, RELA1=????1??, RELA2=????2??}
    01:38:35.079 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - yearTaskAuditNodeEnum = {C=????????, M=????????????, G=?쵼????}
    01:38:35.079 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - systemFileAuditStateEnum = {DRAFT=?ݸ?, DEPTMANAGER=????????????, BOSS=???Ȩ??????, DEPTCHECK=???Ŷ???, DEPTREVISION=?????޸?, PASS=????ͨ???Ѷ???}
    01:38:35.080 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - loggingHandleStateEnum = {TBD=TBD, FIXED=FIXED, TODO=TODO, CANCELED=CANCELED, IGNORE=IGNORE}
    01:38:35.080 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - reportTypeEnum = {EXCEL_JAVA=Excel(JXLS), EXCEL_VBS=Excel(VBS), JASPER=JasperReport}
    01:38:35.080 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - menuTypeEnum = {RELC=?????????, RELD=???????, ABS=????·??}
    01:38:35.127 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - systemTypeEnum = {FRAME=??ܱ?׼??ϵ, CHILD=?ӱ?׼??ϵ}
    01:38:35.138 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - modTypeEnum = {MODIFY=?޸?, ADD=????}
    01:38:35.139 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - bizTradeUnitTypeEnum = {CUSTOMER=?ͻ?, SUPPLIER=??Ӧ??}
    01:38:35.140 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - voucherStateEnum = {DRAFT=?ݸ?, POST=?ύ, REDW=???}
    01:38:35.141 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - auditStatusEnum = {AGREE=ͬ??, DISAGREE=??ͬ??}
    01:38:35.141 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - revisionTaskAuditNodeEnum = {C=????????, M=????????????, G=?쵼????}
    01:38:35.141 INFO l.s.c.w.l.ApplicationContextPostListener[101] - - yearTaskStatusEnum = {DRAFT=?ݸ?, AUDIT=??????, DONE=???????}
    2014-07-07 01:38:35.145:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/s2jh,[file:/Users/flanliulf/Downloads/work/webapp/, jar:file:/Users/flanliulf/Downloads/work/webapp/WEB-INF/lib/assets-resource-1.0.0.jar!/META-INF/resources/, jar:file:/Users/flanliulf/Downloads/work/webapp/WEB-INF/lib/bpm-service-1.0.0.jar!/META-INF/resources/, jar:file:/Users/flanliulf/Downloads/work/webapp/WEB-INF/lib/common-service-1.0.0.jar!/META-INF/resources/]},file:/Users/flanliulf/Downloads/prototype-standalone.war 01:38:35.171 DEBUG l.s.c.w.filter.HttpRequestLogFilter[35] - Invoking HttpRequestLogFilter init method...
    01:38:36.426 WARN o.a.s.c.PackageBasedActionConfigBuilder[56] - The includeJars pattern [.__wl_clsgen.] did not match any jars in the classpath
    01:38:37.329 DEBUG l.s.c.w.f.PostStrutsPrepareAndExecuteFilter[34] - class lab.s2jh.core.web.filter.PostStrutsPrepareAndExecuteFilter postInit...
    2014-07-07 01:38:37.387:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
xautlx commented 10 years ago

这个错误信息是由于没有配置jndi数据源导致的logback报错,不影响应用本身。