Question: 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)      8 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:
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
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
Advertisements
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
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
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
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
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
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
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
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
How to learn Quartz?
How to learn Quartz?  Hi, I have to make a program in Java is scheduling account processing Job after an interval of 20 minutes. Tell me the tutorial. Thanks   Hi, Please check the tutorial Hello World Quartz
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
Spring with scheduler
Spring with scheduler  how quartz scheduler relates with spring.need example with spring and quartz scheduler
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
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
Quartz framework tutorial
Quartz framework tutorial  Hi, I am trying to create the scheduler application. Can any one provide me the url of Quartz framework tutorials. Thanks   Hi, Check the examples at Quartz Tutorial page. Thanks
Download Quartz Job Scheduler
Scheduling application in java. Quartz Scheduler is from OpenSymphony which can... in a variety of different databases.  src/java/org/quartz...) API for the scheduler src/java/org/quartz/core
Quartz Trigger - XML
Quartz Trigger  how to write a quatz trigger to fire mails at every... friend, Quartz Job scheduler is so flexible that it can be used with your standalone as well as enterprise web based applications. Quartz Job scheduler is used
Quartz in web-application
Quartz in web-application  As I am new to Quartz i don't know how to use it in web-application.I am able to run it in eclipse as a stand alone application i had tried out some example but am not able to succeed any help
Quartz Job Scheduler - Subversion
Quartz Job Scheduler  Dear Sir , i am anandaraj working as a programmer , i need the clarification for using the Quartz Job Scheduler . we have.... http://www.roseindia.net/quartz/index.shtml
diff between spring and struts in java
diff between spring and struts in java  diff between spring and struts in java
Quartz Job Scheduler - Subversion
Quartz Job Scheduler  Dear Sir, i have taken that toturial.we are using RAMJob to do our work.while calling the scheduler.start(); , when... the database and genarating the report. we are getting the mail from the quartz
Spring Framework, Spring Framework in Java
of Enterprise Java applications. Now a days Spring Framework is one of the most... Framework (Spring 2.5 or above) also supports the Java 5 annotations. So, you can...Spring Framework Welcome to the Spring Framework tutorials, here we
java spring simple application
java spring simple application  hai I have design a simple.../beans/spring-beans-2.5.xsd"> <bean id="studbean" class="StudentComponent...;Please visit the following link: Spring Tutorials   Please visit
Java Spring Desktop application
Java Spring Desktop application  Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell... First jframe package desktopapplication2
spring
spring   i am a beginner in java.. but i have to learn spring framework.. i know the core java concepts with some J2EE knowledge..can i learn spring without knowing anything about struts
Tutorials   
Java Spring Hibernate Struts Training Spring bean annotation example Spring 5 Framework maven pom.xml java.lang.NoClassDefFoundError: org/springframework/transaction/interceptor/TransactionInterceptor Spring boot java.lang.NoClassDefFoundError: org/springframework/orm/jpa/support/PersistenceAnnotationBeanPostProcessor How to validate form using Spring MVC? Spring Framework Tutorials 2017 Is Spring Framework dead? spring inteview question You Spring Project is not running java lang incompatibleclasschangeerror quartz spring - Error resolved exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'transactionManager' is defined The import javax.validation cannot be resolved java.lang.NoSuchMethodError: javax.persistence.spi.PersistenceUnitInfo.getSharedCacheMode()Ljavax/persistence/SharedCacheMode java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence Solving java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.LocalSessionFactoryBean issue What is the maven dependency for spring batch? Hibernate Session Attribute java.lang.ClassNotFoundException: org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource Testing spring with junit and mock testing in Spring MVC, i would like to download my Mysql database table in pdf,msword,excel formats. java.lang.NoClassDefFoundError: org/hibernate/engine/FilterDefinition error package org.springframework.scheduling.quartz does not exist jquery dependency dropdown box in spring hibernate my sql Server side validation on dynamically generated fields from more than one table on spring framework. What are the new features of Spring 4.1? Append Arguments to the URL quartz schedular in spring mvc Where to download spring framework zip file? Integrating spring 4 with hibernate 4 Learn spring Multiple files upload code using spring mvc 2.0 with xml configuration without using annotations Spring 4 features I need Spring 2.5 example. Please point me towards a good Spring transactional tutorial Could anyone point me towards some good Spring tutorials, Please? What is Spring framework? Spring and hibernate based Online Shopping project with source code How to populate collection like map with annotation in mybatis? Spring Abstraction with Redis Spring framework How to insert and retreive an image in mysql database using spring mvc framework??? CRUD operations in spring mvc 2.5 meenakshi Meenakshi how many scenarios is having to developing web based application by using spring mvc. getting voucherPin parent and child dropdown Spring 3

Ads

 
Advertisement null

Ads