关于quartz的一个奇怪的问题
我在一个web工程里面添加quartz功能,下载了quartz1.5.0
安装后,添加了如下代码:
//在web.xml中添加
<servlet>
<servlet-name>
QuartzInitializer
</servlet-name>
<servlet-class>
org.quartz.ee.servlet.QuartzInitializerServlet
</servlet-class>
<init-param>
<param-name> config-file </param-name>
<param-value> /quartz.properties </param-value>
</init-param>
<init-param>
<param-name> shutdown-on-unload </param-name>
<param-value> true </param-value>
</init-param>
<load-on-startup> 1 </load-on-startup>
</servlet>
//添加了web-inf/classes/quartz.properties
#============================================================================
# Configure Main Scheduler Properties
#============================================================================
org.quartz.scheduler.instanceName = org.quartz.scheduler.instanceId = AUTO
#============================================================================
# Configure ThreadPool
#============================================================================
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 3
org.quartz.threadPool.threadPriority = 5
#============================================================================
# Configure Plugins
#============================================================================
org.quartz.plugin.triggHistory.class = org.quartz.plugins.history.LoggingJobHistoryPlugin
org.quartz.plugin.jobInitializer.class = org.quartz.plugins.xml.JobInitializationPlugin
org.quartz.plugin.jobInitializer.fileName = quartz_job.XML
org.quartz.plugin.jobInitializer.overWriteExistingJobs = true
org.quartz.plugin.jobInitializer.failOnFileNotFound = true
org.quartz.plugin.jobInitializer.scanInterval = 10
//在web-inf/classes中添加quartz_job.XML
<?xml version= "1.0 " encoding= "UTF-8 "?>
<quartz>
<job>
<job-detail>
<name> jobScheduler </name>
<group> group1 </group>
<job-class> admin2006.quartz.He