title: Compile error trying to use Grails' Quartz plugin
body: <p>I am trying to install and use Grails' <a href="http://www.grails.org/plugin/quartz" rel="nofollow">Quartz plugin</a>. My grails' version is 2.3.7</p>
  
  <p>I added <code>compile ":quartz:1.0.1"</code> to my Build.config;
  and downloaded <code>quartz-2.2.1.jar</code> and <code>quartz-jobs-2.2.1.jar</code>; and then added these <code>.jar</code> files to my <code>/lib</code> folder.</p>
  
  <p>When I try <code>grails run-app</code>, the following error appears:</p>
  
  <pre><code>Compile error during compilation with javac.
  C:\Users\username\Documents\NetBeansProjects\Siscoserv-web\target\work\plugins\quartz-1.0-RC11\src\java\grails\plugins\quartz\CustomTriggerFactoryBean.java:51: error: inconvertible types
          if(customTrigger instanceof AbstractTrigger){
             ^
    required: AbstractTrigger
    found:    Trigger
  C:\Users\username\Documents\NetBeansProjects\Siscoserv-web\target\work\plugins\quartz-1.0-RC11\src\java\grails\plugins\quartz\CustomTriggerFactoryBean.java:52: error: inconvertible types
              AbstractTrigger at =(AbstractTrigger) customTrigger;
                                                    ^
    required: AbstractTrigger
    found:    Trigger
  C:\Users\username\Documents\NetBeansProjects\Siscoserv-web\target\work\plugins\quartz-1.0-RC11\src\java\grails\plugins\quartz\CustomTriggerFactoryBean.java:56: error: no suitable method found for setJobKey(Key)
                  at.setJobKey(jobDetail.getKey());
                    ^
      method AbstractTrigger.setJobKey(JobKey) is not applicable
        (actual argument Key cannot be converted to JobKey by method invocation conversion)
      method MutableTrigger.setJobKey(JobKey) is not applicable
        (actual argument Key cannot be converted to JobKey by method invocation conversion)
  </code></pre>
  
  <p>When I tried to install the plugin and run Grails, the following error appeared during <code>run-app</code>:</p>
  
  <pre><code>|Compiling 216 source files
  .Error 
  |
  Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.IncompatibleClassChangeError: Implementing class (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
  java.lang.IncompatibleClassChangeError: Implementing class
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      at org.codehaus.gant.GantBuilder.invokeMethod(GantBuilder.java:99)
      at _GrailsCompile_groovy$_run_closure3_closure8_closure9.doCall(_GrailsCompile_groovy:61)
      at _GrailsCompile_groovy$_run_closure3_closure8_closure9.doCall(_GrailsCompile_groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at _GrailsCompile_groovy.withCompilationErrorHandling(_GrailsCompile_groovy:68)
      at _GrailsCompile_groovy.this$4$withCompilationErrorHandling(_GrailsCompile_groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:168)
      at _GrailsCompile_groovy$_run_closure3_closure8.doCall(_GrailsCompile_groovy:60)
      at _GrailsCompile_groovy$_run_closure3_closure8.doCall(_GrailsCompile_groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at _GrailsCompile_groovy$_run_closure3.doCall(_GrailsCompile_groovy:57)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
      at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
      at _GrailsCompile_groovy$_run_closure2.doCall(_GrailsCompile_groovy:44)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:168)
      at _GrailsPackage_groovy$_run_closure2_closure8.doCall(_GrailsPackage_groovy:42)
      at _GrailsPackage_groovy$_run_closure2_closure8.doCall(_GrailsPackage_groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at _GrailsPackage_groovy$_run_closure2.doCall(_GrailsPackage_groovy:41)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.processClosure(GantMetaClass.java:81)
      at org.codehaus.gant.GantMetaClass.processArgument(GantMetaClass.java:95)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:128)
      at RunApp$_run_closure1.doCall(RunApp.groovy:28)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding.withTargetEvent(GantBinding.groovy:90)
      at org.codehaus.gant.GantBinding.this$4$withTargetEvent(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy:185)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16.doCall(GantBinding.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at gant.Gant.withBuildListeners(Gant.groovy:427)
      at gant.Gant.this$2$withBuildListeners(Gant.groovy)
      at gant.Gant$this$2$withBuildListeners$0.callCurrent(Unknown Source)
      at gant.Gant.dispatch(Gant.groovy:415)
      at gant.Gant.this$2$dispatch(Gant.groovy)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at gant.Gant.invokeMethod(Gant.groovy)
      at gant.Gant.executeTargets(Gant.groovy:591)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
      at gant.Gant.executeTargets(Gant.groovy:590)
      at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1254)
  Error |
  Fatal error during compilation org.apache.tools.ant.BuildException: java.lang.IncompatibleClassChangeError: Implementing class
  </code></pre>
  
  <p>I didn't erase the class's name in the error above, it just doesn't appear.</p>