1 Reply Latest reply on Mar 4, 2008 10:31 PM by Nicklas Karlsson

    QuartzDispatcher.instance() returns ThreadPoolDispatcher

    Peter Maedel Newbie

      Hello, I have found several issues concerning the usage of Quartz but as none was alike mine so I hope the solution to my problem is somewhat imminent.


      I have


      - added <async:quartz-dispatcher /> to components.xml
      - copied quartz.jar from jboss\server\default\lib to ear\lib
      - added quartz.jar as a java module to application.xml
      



      Quartz starts up just fine:


      18:58:14,735 INFO  [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      18:58:14,751 INFO  [QuartzResourceAdapter] start quartz!!!
      18:58:14,813 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: main
      18:58:14,844 INFO  [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      18:58:14,844 INFO  [RAMJobStore] RAMJobStore initialized.
      18:58:14,844 INFO  [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      18:58:14,844 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      18:58:14,844 INFO  [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      



      until:


      java.lang.ClassCastException: org.jboss.seam.async.ThreadPoolDispatcher_$$_javassist_1 cannot be cast to org.jboss.seam.async.QuartzDispatcher
           at org.jboss.seam.async.QuartzDispatcher.instance(QuartzDispatcher.java:316)
      



      at


      QuartzTriggerHandle handle = QuartzDispatcher.instance().scheduleTimedEvent("myEvent",
                               new CronSchedule((Long) null, trigger));
      



      Im using Seam 2.0.1 and Jboss 4.2.2 and looking forward to get some help :)