title: Error creating bean in Quartz-Scheduler
body: <p>I changed the quartz library from version 1.5.2 to 2.1.2. With older version of it the project runs and works fine, but with 2.1.2 I get the exception:</p>
  
  <pre><code>Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lcJobDetail' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.InstantiationError: org.quartz.JobDetail
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
  at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:546)
  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:872)
  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
  at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:139)
  at org.springframework.context.support.ClassPathXmlApplicationContext.&lt;init&gt;(ClassPathXmlApplicationContext.java:83)
  at com.deveto.struts.triggers.TriggerTables.&lt;clinit&gt;(TriggerTables.java:36)
  ... 113 more
  Caused by: java.lang.InstantiationError: org.quartz.JobDetail
  at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean.afterPropertiesSet(MethodInvokingJobDetailFactoryBean.java:177)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
  ... 125 more
  </code></pre>
  
  <p>The quartz declaration from applicationContext.xml:</p>
  
  <pre><code>&lt;bean name="lcTask" class="com.deveto.struts.triggers.TriggerLeagueCup"&gt;&lt;/bean&gt;
  
  &lt;bean id="lcJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt;
      &lt;property name="targetObject" ref="lcTask" /&gt;
      &lt;property name="targetMethod" value="execute" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="lcCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"&gt;
      &lt;property name="jobDetail" ref="lcJobDetail" /&gt;
      &lt;property name="cronExpression" value="0 30 12 1/1 * ? *"/&gt;
  &lt;/bean&gt;
  
  &lt;bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&gt;
      &lt;property name="triggers"&gt;
          &lt;list&gt;
             &lt;ref bean="lcCronTrigger"/&gt;
          &lt;/list&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>I can't find where the problem is, maybe with your help guys I will.</p>