title: java.lang.NoSuchMethodError: org.springframework.scheduling.quartz.SchedulerFactoryBean.getScheduler()Lorg/quartz/Scheduler;
body: <p>I don't know what I'm doing wrong here. I'm getting error</p>
  
  <pre><code>java.lang.NoSuchMethodError: org.springframework.scheduling.quartz.SchedulerFactoryBean.getScheduler()Lorg/quartz/Scheduler;
  </code></pre>
  
  <p>this is caused when 
      public class myJobLauncher {</p>
  
  <pre><code>@Autowired
  @Qualifier("myQuartzScheduler")
      private  SchedulerFactoryBean scheduler_factory = null;
  .......
      ........
          Scheduler someScheduler = scheduler_factory.getScheduler();
  </code></pre>
  
  <p>and here are my xml files</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;beans  xmlns="http://www.springframework.org/schema/beans"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:aop="http://www.springframework.org/schema/aop"
  xmlns:tx="http://www.springframework.org/schema/tx"
  xmlns:context="http://www.springframework.org/schema/context"
  xmlns:task="http://www.springframework.org/schema/task"
  xsi:schemaLocation="
          http://www.springframework.org/schema/beans
          http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
          http://www.springframework.org/schema/tx
          http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
          http://www.springframework.org/schema/aop
          http://www.springframework.org/schema/aop/spring-aop-4.0.xsd
          http://www.springframework.org/schema/task
          http://www.springframework.org/schema/task/spring-task-4.0.xsd
          http://www.springframework.org/schema/context
          http://www.springframework.org/schema/context/spring-context-4.0.xsd"&gt;          
   ....
   &lt;bean id="myQuartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt;
   &lt;property name="autoStartup"&gt;
    &lt;value&gt;true&lt;/value&gt;
  &lt;/property&gt;
  &lt;property name="name"&gt;
    &lt;value&gt;myScheduler&lt;/value&gt;
  &lt;/property&gt;
  &lt;property name="quartzProperties"&gt;
    &lt;props&gt;
      &lt;prop key="org.quartz.threadPool.class"&gt;org.quartz.simpl.SimpleThreadPool&lt;/prop&gt;
      &lt;prop key="org.quartz.threadPool.threadCount"&gt;1&lt;/prop&gt;
      &lt;prop key="org.quartz.jobStore.class"&gt;org.quartz.simpl.RAMJobStore&lt;/prop&gt;
      &lt;prop key="org.quartz.scheduler.skipUpdateCheck"&gt;true&lt;/prop&gt;
    &lt;/props&gt;
  &lt;/property&gt;
    &lt;property name="jobFactory"&gt;
          &lt;bean  class="org.springframework.scheduling.quartz.SpringBeanJobFactory" /&gt;
    &lt;/property&gt;
  </code></pre>
  
  <p></p>
  
  <p>not sure why i'm getting that exception</p>
  
  <p>here is my pom file entries
      
          
              org.quartz-scheduler
              quartz
              1.8.6
          </p>
  
  <p>using spring framework 4.0.0</p>
  
  <p>added all spring-context-support,spring-context,beans,transaction.</p>
  
  <p>we have some client code which is using above version of quartz  ,we are integrating their spring project and adding enhancements to it. so bottom line is we cannot modify their code  .</p>