Closed vivganes closed 10 years ago
There is a setter for mongoUri
. What Quartz version do you use?
Looking at Quartz source for 2.1.x
and 2.2.0
, the line that thrown an exception does not match what's in the stack trace posted.
I am using "org.quartz-scheduler" % "quartz" % "2.1.5"
I see the exception code here : http://grepcode.com/file/repo1.maven.org/maven2/org.quartz-scheduler/quartz/2.1.5/org/quartz/impl/StdSchedulerFactory.java#1372
Also, i am using "com.novemberain" % "quartz-mongodb" % "1.3.0-beta2" with resolver resolvers += "Clojars Repository for quartz-mongodb" at "http://clojars.org/repo",
I was using old and beta jars of quartz-mongodb. I changed to 1.3.0 and the error is gone :)
Closing this issue.
I used the following quartz.properties file.
I get the following exception during initialization of Quartz.
Stack trace:
Caused by: java.lang.NoSuchMethodException: No setter for property 'mongoUri' at org.quartz.impl.StdSchedulerFactory.setBeanProps(StdSchedulerFactory.java:1372) at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:848) ... 8 more