Open stefanbozic opened 5 years ago
Hi,
I have same problem. A temporary solution is add this dependency:
compile("org.quartz-scheduler:quartz:2.2.3") {
exclude group: 'slf4j-api', module: 'c3p0'
}
All kudos for @mobilemindtec however here is whole working workaround for Grails 4.0.1:
compile("org.quartz-scheduler:quartz:2.2.3") {
exclude group: 'slf4j-api', module: 'c3p0'
}
compile ('org.grails.plugins:quartz:2.0.13')
(order of dependencies matters)
hi Just add following line runtime 'org.grails.plugins:quartz:2.0.13'
hi Just add following line runtime 'org.grails.plugins:quartz:2.0.13'
didn't work
I'm using grails 5.3.4, getting the following error:
[ERROR] org.quartz.core.ErrorLogger - An error occured instantiating job to be executed. job= 'GRAILS_JOBS.xyz.DemoJob'
org.quartz.SchedulerException: Job instantiation failed
at org.springframework.scheduling.quartz.AdaptableJobFactory.newJob(AdaptableJobFactory.java:47)
at org.quartz.core.JobRunShell.initialize(JobRunShell.java:127)
at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:392)
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'grails.plugins.quartz.GrailsJobFactory$GrailsJob': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'java.lang.Object' available: more than one 'primary' bean found among candidates
I have added this in build.gradle
implementation ("org.quartz-scheduler:quartz:2.2.3") { exclude group: 'slf4j-api', module: 'c3p0' } implementation ('org.grails.plugins:quartz:2.0.13')
Jobs started working after I upgrade the grails version to 5.3.5, it does not work in 5.3.4
The current version of the plugin seems not to work with Grails 4.0.0.M2
Simply created a test application
grails create-app testQuartz
Added the plugin dependency into build.gradle
compile 'org.grails.plugins:quartz:2.0.13'
The following exception occurs