当前位置: 代码迷 >> Java Web开发 >> spring+quartz的错误,不能正常启动
  详细解决方案

spring+quartz的错误,不能正常启动

热度:5995   发布时间:2013-02-25 21:05:47.0
spring+quartz的异常,不能正常启动
spring中quartz的配置如下:

<bean id="mailResumeReadAndParseJob" lazy-init="false" class="org.springframework.scheduling.quartz.JobDetailBean">
     <property name="jobClass">
       <value>cn.com.ht.tja.mailtask.MailResumeReadAndParseTask</value>
     </property>
    </bean>
    
    <bean id="simpleReportTrigger" lazy-init="false" class="org.springframework.scheduling.quartz.SimpleTriggerBean">
     <property name="jobDetail">
     <ref bean="mailResumeReadAndParseJob"/>
     </property>
     <property name="startDelay">
     <value>10000</value>
     </property>
     <property name="repeatInterval">
     <value>10000</value>
     </property>
    </bean>
    
    <bean lazy-init="false" autowire="no" id="quartzLoader" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
     <property name="triggers">
     <list>
     <ref bean="simpleReportTrigger" />
     </list>
     </property>
     </bean>

系统异常如下:
 INFO [main] (QuartzScheduler.java:244) - Scheduler meta-data: Quartz Scheduler
(v1.8.4) 'DefaultQuartzScheduler' 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 10 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persis
tence. and is not clustered.

 INFO [main] (StdSchedulerFactory.java:1280) - Quartz scheduler 'DefaultQuartzSc
heduler' initialized from default resource file in Quartz package: 'quartz.prope
rties'
 INFO [main] (StdSchedulerFactory.java:1284) - Quartz scheduler version: 1.8.4
 INFO [main] (QuartzScheduler.java:500) - Scheduler DefaultQuartzScheduler_$_NON
_CLUSTERED started.
 INFO [main] (XmlConfigurationProvider.java:140) - Parsing configuration file [s
truts-default.xml]
 INFO [main] (XmlConfigurationProvider.java:140) - Parsing configuration file [s
truts-plugin.xml]
 INFO [main] (XmlConfigurationProvider.java:140) - Parsing configuration file [s
truts.xml]
 WARN [main] (Settings.java:143) - Settings: Could not parse struts.locale setti
ng, substituting default VM locale
2011-1-11 23:18:58 org.apache.catalina.core.StandardContext start
严重: Error filterStart
2011-1-11 23:18:58 org.apache.catalina.core.StandardContext start
严重: Context [/mailresume] startup failed due to previous errors
  相关解决方案