This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring-Quartz scheduler-CronJob NoSuchMethodError org.quartz. Scheduler.setJobFactory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring-Quartz scheduler-CronJob NoSuchMethodError org.quartz. Scheduler.setJobFactory" Watch "Spring-Quartz scheduler-CronJob NoSuchMethodError org.quartz. Scheduler.setJobFactory" New topic
Author

Spring-Quartz scheduler-CronJob NoSuchMethodError org.quartz. Scheduler.setJobFactory

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hello,

I am involved in a project using Spring framework and we need a scheduler to kick of a process at a given interval of time. I am using the following code :-


When I start up my application, I get the following exception report :-



The ReportsQueue class extends QuartzJobBean and for now does not implement any interfaces. The methods present in ReportsQueue are :-

and


Does the Exception occur due to any method I have to implement but am not doing that right now? Any help will be very helpful.

Cheers,
Raj.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Which version of Quartz are you using ?


[My Blog]
All roads lead to JavaRanch
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

I am using Quartz 1.6.
[ June 21, 2008: Message edited by: Raj Kamal ]
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hi,

I modified existing code from MethodInvokingJobDetailFactoryBean to use the JobDetailBean. I still get the same error on server startup.

After some hair pulling and nail biting I found that the root of the problem was caused from the SchedulerFactoryBean.

I found from the docs that to use the JobDetailBean and its sub-classes the version of Quartz has to be 1.5 or above. Right now I am using the quartz-all-1.6.0.jar and the SchedulerFactoryBean from spring-support-1.2.9.jar.

Is there any version conflict between the classes I am using?



Cheers,
Raj.
Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

Hi,

I feel it was caused by version incompatibility. I gave up on Quartz scheduler and used the Timer. It worked fine. Moving on to weaving another layer now.

Thanks,
Raj.
Vaibhav Dalvi
Greenhorn

Joined: Jul 24, 2008
Posts: 1
Yes... There is a conflict. Use jar from "http://www.findjar.com/jar/mule/dependencies/maven2/quartz/quartz-all/1.6.0/quartz-all-1.6.0.jar.html". I use this jar and there are no erros... it is now working...
[ July 24, 2008: Message edited by: Vaibhav Dalvi ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring-Quartz scheduler-CronJob NoSuchMethodError org.quartz. Scheduler.setJobFactory
 
Similar Threads
Hiberante transaction in Spring
Quartz job stoping after some time
spring with quartz example
send email using spring + Quartz Scheduler
Error while Proxying DAO Classes