Job-webapp

任务运行,管理应用程序。

运行应用程序,需要设置环境变量kivu4j.mode的值:productiondevelopment, 两个值分别代表产品环境开发环境

数据库的配置在目录src/main/resources/production/src/main/resources/development/下, 修改文件db.properties

运行日志

Root WebApplicationContext: initialization started
Refreshing Root WebApplicationContext: startup date [Thu Feb 23 11:04:16 CST 2012]; root of context hierarchy
Loading XML bean definitions from file [/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/classes/context/quartz.xml]
Loading XML bean definitions from file [/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/classes/context/properties.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/utils-api-1.0.0.jar!/context/annotations.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/utils-api-1.0.0.jar!/context/dataSource.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/utils-api-1.0.0.jar!/context/transactions.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/utils-hibernate-1.0.0.jar!/context/hibernate.xml]
Loading XML bean definitions from file [/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/classes/beans/beans.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/job-example-1.0.0.jar!/beans/beans.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/job-hibernate-1.0.0.jar!/beans/beans.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/job-services-1.0.0.jar!/beans/beans.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/utils-api-1.0.0.jar!/beans/beans.xml]
Loading XML bean definitions from URL [jar:file:/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/lib/utils-job-1.0.0.jar!/beans/beans.xml]
Loading properties file from file [/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/classes/production/db.properties]
Loading properties file from file [/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/classes/production/c3p0.properties]
Loading properties file from file [/kivu4j/sources/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/job-webapp/WEB-INF/classes/production/hibernate/hibernate.properties]
Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@121fd61: defining beans [onDemandJob,onDemandCron,scheduler,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,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,dataSource,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,databaseNamingStrategy,hibernateProperties,sessionFactory,hibernateTemplate,transactionManager,onDemandProcessor,jsonUtil,dogBarkProcessor,dogWagTailProcessor,wolfBarkProcessor,timetableRepository,jobResultFactory,timetableManager,timetableResultFactory,dozerBeanMapper,scheduleManager]; root of factory hierarchy
MLog clients using log4j logging.
Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? true; trace: 10]
Hibernate Commons Annotations 3.2.0.Final
Hibernate 3.6.8.Final
hibernate.properties not found
Bytecode provider name : javassist
using JDK 1.4 java.sql.Timestamp handling
Mapping class: org.Kivu4j.job.domain.Timetable -> timetable
Hibernate Validator not found: ignoring
Building new Hibernate SessionFactory
Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kfsx8l1anrm361874x1p|1d8e9e, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfsx8l1anrm361874x1p|1d8e9e, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/job_db?useUnicode=true&characterEncoding=utf-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]
Using dialect: org.hibernate.dialect.MySQLDialect
Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
Database ->
       name : MySQL
    version : 5.1.49-1ubuntu8
      major : 5
      minor : 1
Driver ->
       name : MySQL-AB JDBC Driver
    version : mysql-connector-java-5.1.12 ( Revision: ${bzr.revision-id} )
      major : 5
      minor : 1
Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Automatic flush during beforeCompletion(): disabled
Automatic session close at end of transaction: disabled
JDBC batch size: 30
JDBC batch updates for versioned data: disabled
Scrollable result sets: enabled
JDBC3 getGeneratedKeys(): enabled
JDBC result set fetch size: 50
Connection release mode: auto
Maximum outer join fetch depth: 2
Default batch fetch size: 1
Generate SQL with comments: disabled
Order SQL updates by primary key: disabled
Order SQL inserts for batching: disabled
Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Using ASTQueryTranslatorFactory
Query language substitutions: {}
JPA-QL strict compliance: disabled
Second-level cache: disabled
Query cache: disabled
Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
Optimize cache for minimal puts: disabled
Cache region prefix: Kivu4j
Structured second-level cache entries: disabled
Statistics: disabled
Deleted entity synthetic identifier rollback: disabled
Default entity-mode: pojo
Named query checking : enabled
Check Nullability in Core (should be disabled when Bean Validation is on): enabled
building session factory
Type registration [materialized_clob] overrides previous : org.hibernate.type.MaterializedClobType@590510
Type registration [wrapper_characters_clob] overrides previous : org.hibernate.type.CharacterArrayClobType@5b6d00
Type registration [blob] overrides previous : org.hibernate.type.BlobType@514f7f
Type registration [java.sql.Blob] overrides previous : org.hibernate.type.BlobType@514f7f
Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@3a5a9c
Type registration [characters_clob] overrides previous : org.hibernate.type.PrimitiveCharacterArrayClobType@112d7ae
Type registration [clob] overrides previous : org.hibernate.type.ClobType@e1666
Type registration [java.sql.Clob] overrides previous : org.hibernate.type.ClobType@e1666
Type registration [wrapper_materialized_blob] overrides previous : org.hibernate.type.WrappedMaterializedBlobType@e0ada6
Not binding factory to JNDI, no JNDI name configured
Using DataSource [com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> z8kfsx8l1anrm361874x1p|1d8e9e, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kfsx8l1anrm361874x1p|1d8e9e, idleConnectionTestPeriod -> 0, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql://localhost:3306/job_db?useUnicode=true&characterEncoding=utf-8, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]] of Hibernate SessionFactory for HibernateTransactionManager
Loading Quartz config from [class path resource [quartz.properties]]
Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
Quartz Scheduler v.1.8.5 created.
JobFactory set to: org.quartz.simpl.SimpleJobFactory@efe27b
Using db table-based data access locking (synchronization).
Removed 0 Volatile Trigger(s).
Removed 0 Volatile Job(s).
JobStoreCMT initialized.
Scheduler meta-data: Quartz Scheduler (v1.8.5) 'scheduler' with instanceId 'NON_CLUSTERED'
  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 5 threads.
  Using job-store 'org.springframework.scheduling.quartz.LocalDataSourceJobStore' - which supports persistence. and is not clustered.

Quartz scheduler 'scheduler' initialized from an externally provided properties instance.
Quartz scheduler version: 1.8.5
JobFactory set to: org.springframework.scheduling.quartz.AdaptableJobFactory@e8e8f9
Trying to find Dozer configuration file: dozer.properties
Dozer configuration file not found: dozer.properties.  Using defaults for all Dozer global properties.
Initializing Dozer. Version: 5.3.2, Thread Name: main
Dozer JMX MBean [org.dozer.jmx:type=DozerStatisticsController] auto registered with the Platform MBean Server
Dozer JMX MBean [org.dozer.jmx:type=DozerAdminController] auto registered with the Platform MBean Server
Initializing a new instance of dozer bean mapper.
Starting beans in phase 2147483647
Will start Quartz Scheduler [scheduler] in 10 seconds
Root WebApplicationContext: initialization completed in 3478 ms
Parsing configuration file [struts-default.xml]
Parsing configuration file [struts-plugin.xml]
Parsing configuration file [struts.xml]
Initializing Struts-Spring integration...
Setting autowire strategy to name
... initialized Struts-Spring integration successfully
Starting Quartz Scheduler now, after delay of 10 seconds
Freed 0 triggers from 'acquired' / 'blocked' state.
Handling 5 trigger(s) that missed their scheduled fire-time.
Recovering 0 jobs that were in-progress at the time of the last shut-down.
Recovery complete.
Removed 0 'complete' triggers.
Removed 0 stale fired job entries.
Scheduler scheduler_$_NON_CLUSTERED started.