Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

java lang incompatibleclasschangeerror quartz spring - Error resolved

Ads

 
 

Share on Google+Share on Google+

Java Coder
java lang incompatibleclasschangeerror quartz spring - Error resolved
1 Answer(s)      10 months ago
Posted in : Spring

Hi,

I am developing module for using the Quartz scheduler with Spring web application. On startup it gives following error:

Caused by: java.lang.IncompatibleClassChangeError: class org.springframework.scheduling.quartz.JobDetailBean has interface org.quartz.JobDetail as super class
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:455)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:367)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366)
        at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337)
        at org.springframework.util.ClassUtils.forName(ClassUtils.java:247)
        at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1346)
        at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1317)
        ... 65 more

I am using maven for this project.

How to resolve this error?

Thanks

Ads
View Answers

August 20, 2016 at 12:01 AM


Hi,

Spring web framework is not compatible with Quartz 2.2.x

I was using:

<quartz.version>2.2.1</quartz.version>

After downgrading Quartz to:

<quartz.version>1.8.6</quartz.version>

Problem solved. You should use following dependency in your application:

    <!-- Quartz framework -->
    <dependency>
        <groupId>org.quartz-scheduler</groupId>
        <artifactId>quartz</artifactId>
        <version>${quartz.version}</version>
    </dependency>

or:

    <!-- Quartz framework -->
    <dependency>
        <groupId>org.quartz-scheduler</groupId>
        <artifactId>quartz</artifactId>
        <version>1.8.6</version>
    </dependency>

Thanks


Ads









Related Tutorials/Questions & Answers:
PdfCopyFields cannot be resolved - Java Beginners
PdfCopyFields cannot be resolved  PdfCopyFields cannot be resolved but other classes in the iText-2.1.0.jar are resolved. Any suggestions? Thanks
PdfCopyFields cannot be resolved - Java Beginners
PdfCopyFields cannot be resolved   Trying to concatenate PDF files. I downloaded the example from PdfCopyFields cannot be resolved but other
Advertisements
quartz schedular in spring mvc
quartz schedular in spring mvc  how to apply auto emailing through sping mvc and want to pass some variable to that trigger job
Quartz web application - Java Beginners
Quartz web application  Quartz is not firing jobs as per cron expression in java web application. I set the cron expression as 0/20 * * * * ? and when i load the web application it runs fine but its not firing the job after
spring question - Java Interview Questions
spring question  what is quartz API in spring
combobox cannot be resolved in JavaFX
combobox cannot be resolved in JavaFX  I want to design one application with a combobox containing items. and while selecting i want to give user autocomplete suggestion. but while doing this combobox is not getting resolved. i
Quartz trigger dropping automatically - Java Beginners
Quartz trigger dropping automatically  In our application we.... As per our understanding quartz trigger will not get dropped off.... http://www.roseindia.net/quartz/index.shtml Thanks
Quartz Tutorial
Quartz Tutorial       In this Quartz Tutorial you will how to use Quartz Job scheduler in your java... job scheduling application in Java.     Download Quartz Job
Version of quartz>quartz dependency
List of Version of quartz>quartz dependency
Version of commons-lang>commons-lang dependency
List of Version of commons-lang>commons-lang dependency
Job scheduling with Quartz - Java Server Faces Questions
Job scheduling with Quartz   I have an JSF application deployed... to database. It works fine but when the Quartz scheduler fires a job it accquires... while initialization or while calling the job.  Hi,How you
Java Quartz Framework
Java Quartz Framework       Quartz is an open source job scheduler.  It provides powerful... application written in java as this is entirely written in Java. It can be used
JAVA - Spring
spring concept, i want a small program in spring. what are the requirements... information,Examples and Tutorials on Spring visit to : http://www.roseindia.net/spring/ Thanks
Version of quartz>quartz-jboss dependency
List of Version of quartz>quartz-jboss dependency
Version of quartz>quartz-oracle dependency
List of Version of quartz>quartz-oracle dependency
Version of quartz>quartz-weblogic dependency
List of Version of quartz>quartz-weblogic dependency
Java - Spring
Java  Hi Roseindia, Can you provide code for searching based on Id and name using Spring,Hibernate & Struts. MAny Thanks Ragahvendra  .../struts/hibernate-spring/index.shtml Hope that it will be helpful for you
java - Spring
java  hi deepak, can u send simple program on spring with alkl jar files ,same as how u put in struts in the sites..plse help i am in trouble ...i am new 2 spring
java - Spring
java  if we want to execute spring program what are the basic files we need? how to write the spring program?i want small example with code. what is loosely coupled and titlly coupled? what is constructor injection? what
Spring with scheduler
Spring with scheduler  how quartz scheduler relates with spring.need example with spring and quartz scheduler
Lang and Util Base Libraries
Lang and Util Base Libraries The Base libraries provides us the fundamental features and functionality of the Java platform. Lang and Util Packages Lang..., for the Logging Facility, jconsole and Java Management Extensions (JMX), and Sun's
Maven dependency for apache commons lang
Apache Commons lang library in my Java application. How to add it in my project? What is the Maven dependency for apache commons lang? Thanks   Hi, Apache commons lang library and its on the line of java.lang library of Java
Quartz scheduler
Quartz scheduler  I m new to quartz scheduler.... I want to schedule a job in quartz.... How can i schedule ? pls send me some step by step procedure
quartz scheduler
quartz scheduler  Hai I m new to quartz scheduler. I have run successfully the simple helloworld quartz job by using eclipse ide. Now I have one doubt can i schedule a BIRT report manually by using quartz scheduler ? Is there any
Artifacts of commons-lang
List of Artifacts of commons-lang maven depenency
Quartz / Eclipse - Java Beginners
Quartz / Eclipse  Hi, I try to add quartz Lib in my HelloQuartz application. When I run HelloSchedule, I get this error: "Exception in thread "main... add Jar File in Java Build Path Library. i get this message : " No entries
Maven Dependency commons-lang >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of commons-lang >> commons-lang version1.0.1 in your project
Maven Dependency commons-lang >> 1.0-b1
You should include the dependency code given in this page to add Maven Dependency of commons-lang >> commons-lang version1.0-b1 in your project
Maven Dependency commons-lang >> 2.0
You should include the dependency code given in this page to add Maven Dependency of commons-lang >> commons-lang version2.0 in your project
Maven Dependency commons-lang >> 20030203.000129
You should include the dependency code given in this page to add Maven Dependency of commons-lang >> commons-lang version20030203.000129 in your project
Maven Dependency commons-lang >> 2.2
You should include the dependency code given in this page to add Maven Dependency of commons-lang >> commons-lang version2.2 in your project