title: Quartz xml configuration
body: <p>I want to run Quartzjob through xml configuration along with Tomcat Server.But when I start Tomcat my job is not at all starting.
  could any one help ?
  Here is My code:</p>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app&gt;
  &lt;listener&gt;
      &lt;listener-class&gt;
         org.quartz.ee.servlet.QuartzInitializerListener
     &lt;/listener-class&gt;
  &lt;/listener&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>MyJob.java</p>
  
  <pre><code>package com.cron;
  
  import org.quartz.Job;
  import org.quartz.JobExecutionContext;
  import org.quartz.JobExecutionException;
  
  
  public class MyJob implements Job {
  
      public void execute(JobExecutionContext context)
       throws JobExecutionException {
  
        System.out.println("Cron executing ");
  
      }
  }
  </code></pre>
  
  <p>quartz-config.xml under project src folder</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;job-scheduling-data
      xmlns="http://www.quartz-scheduler.org/xml/JobSchedulingData"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.quartz-scheduler.org/xml/JobSchedulingData
  
  http://www.quartz-scheduler.org/xml/job_scheduling_data_1_8.xsd"
  
      version="1.8"&gt;
  
      &lt;schedule&gt;
          &lt;job&gt;
              &lt;name&gt;FirstJob&lt;/name&gt;
              &lt;group&gt;DummyGroup&lt;/group&gt;
              &lt;description&gt;This is FirstJob&lt;/description&gt;
              &lt;job-class&gt;com.cron.MyJob&lt;/job-class&gt;
          &lt;/job&gt;
          &lt;trigger&gt;
              &lt;cron&gt;
                  &lt;name&gt;dummyTrigger&lt;/name&gt;
                  &lt;job-name&gt;FirstJob&lt;/job-name&gt;
                  &lt;job-group&gt;GroupDummy&lt;/job-group&gt;
                  &lt;!-- It will run every 2 seconds --&gt;
                  &lt;cron-expression&gt;0/2 * * * * ?&lt;/cron-expression&gt;
              &lt;/cron&gt;
          &lt;/trigger&gt;
      &lt;/schedule&gt;
  &lt;/job-scheduling-data&gt;
  </code></pre>
  
  <p>quartz.properties file under project src folder</p>
  
  <pre><code>org.quartz.scheduler.instanceName = MyScheduler
  org.quartz.threadPool.threadCount = 3
  org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
  org.quartz.plugin.jobInitializer.class =org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin
  org.quartz.plugin.jobInitializer.fileNames =quartz-config.xml
  org.quartz.plugin.jobInitializer.failOnFileNotFound = true
  </code></pre>
  
  <p>when i start Tomcat server the log it is showing below</p>
  
  <pre><code>SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
  SLF4J: Defaulting to no-operation (NOP) logger implementation
  SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
  Apr 12, 2015 4:39:28 PM org.apache.coyote.http11.Http11Protocol start
  INFO: Starting Coyote HTTP/1.1 on http-8441
  Apr 12, 2015 4:39:28 PM org.apache.jk.common.ChannelSocket init
  INFO: JK: ajp13 listening on /0.0.0.0:8442
  Apr 12, 2015 4:39:28 PM org.apache.jk.server.JkMain start
  INFO: Jk running ID=0 time=0/46  config=null
  Apr 12, 2015 4:39:28 PM org.apache.catalina.startup.Catalina start
  INFO: Server startup in 1208 ms
  </code></pre>
  
  <p>The list of JAR files i have used below:</p>
  
  <pre><code>quartz-2.2.1.jar
  quartz-jobs-2.2.1.jar
  slf4j-api-1.7.5.jar
  jta-1.1.jar
  </code></pre>