title: Spring 3 + Quartz 2 error
body: <p>I received the error below when I use Spring 3 with Quartz 2.  Does anyone knows the reason?</p>
  
  <p>Error:</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [org.springframework.scheduling.quartz.JobDetailBean] for bean with name 'job' defined in class path resource [beans.xml]: problem with class file or dependent class; nested exception is java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.JobDetailBean has interface org.quartz.JobDetail as super class
      at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1253)
  </code></pre>
  
  <p>Spring config file:</p>
  
  <pre><code>&lt;bean name="job" class="org.springframework.scheduling.quartz.JobDetailBean"&gt;
    &lt;property name="jobClass" value="Example.ExampleJob"/&gt;
    &lt;property name="jobDataAsMap"&gt;
      &lt;map&gt;
        &lt;entry key="timeout" value="5"/&gt;
      &lt;/map&gt;
    &lt;/property&gt;
  &lt;/bean&gt;
  
  &lt;bean id="simpleTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"&gt;
    &lt;property name="jobDetail" ref="job"/&gt;
    &lt;property name="startDelay" value="1000"/&gt;
    &lt;property name="repeatInterval" value="5000"/&gt;
  &lt;/bean&gt;
  
  public class ExampleJob extends QuartzJobBean {
  
        private int timeout;
  
        /**
         * Setter called after the ExampleJob is instantiated
         * with the value from the JobDetailBean (5)
         */ 
        public void setTimeout(int timeout) {
          this.timeout = timeout;
        }
  
      @Override
      protected void executeInternal(JobExecutionContext ctx)
              throws JobExecutionException {
          *****
      }
  
  }
  </code></pre>