Announcement Announcement Module
Collapse
No announcement yet.
springframework 3.1.0.RELEASE + Quartz 2.1.1 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • springframework 3.1.0.RELEASE + Quartz 2.1.1

    i'm using quartz 2.1.1 or 2.0.2 with springframework 3.1.0.RELEASE.
    I saw that the change log, starting with 3.1 support quartz 2.X, but, i got an error log like this.
    My context file is same with springframework 3.1.0.RELEASE's manual.
    I can get a successful result when i using 3.0.5.RELEASE + quartz 1.8.X.
    Show me the answer how can i solve this problem.



    Caused by: java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.SimpleTrigge rBean has interface org.quartz.SimpleTrigger as super class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java :616)
    at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader .java:260)
    at java.net.URLClassLoader.access$000(URLClassLoader. java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java: 195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.j ava:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:3 03)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:2 48)
    at org.springframework.util.ClassUtils.forName(ClassU tils.java:257)
    at org.springframework.beans.factory.support.Abstract BeanDefinition.resolveBeanClass(AbstractBeanDefini tion.java:417)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doResolveBeanClass(AbstractBeanFactory .java:1283)
    at org.springframework.beans.factory.support.Abstract BeanFactory.resolveBeanClass(AbstractBeanFactory.j ava:1254)
    ... 59 more

  • #2
    I also have this issue and would be interested in the answer as the change logs seem to indicate that Spring 3.1.0.release works with quartz 2.1

    Regards

    Comment


    • #3
      Reply

      I solve this problem with API.
      Using SimpleTriggerBean to SimpleTriggerFactoryBean, then it can be successfully executed.

      manual and API is different, so i'm so confused and Inconvenient.

      Thank you.

      Comment


      • #4
        Sorry im not clear what you mean in your reply, would you be able to show a code snippet of the change you made?

        EDIT: Think ive found out what you meant above, the 3.x release has created Factory classes for crontrigger and simpletrigger etc which takes over.

        Thanks

        /thread
        Last edited by stewart_g; Jan 20th, 2012, 02:15 PM.

        Comment


        • #5
          <bean id="" class="org.springframework.scheduling.quartz.Simpl eTriggerFactoryBean">
          instead of
          <bean id="" class="org.springframework.scheduling.quartz.Simpl eTriggerBean">
          that I could start my app

          Comment


          • #6
            Thanks! it worked.

            Comment

            Working...
            X