English 中文(简体)
2.0 时间表例外情况
原标题:Quartz 2.0 scheduler exceptions

我们正在使用第2号季度框架。 我刚刚下载了季茨包,把它放在我的项目的建设道路上。 如果一执行同一表列单,用于第1栏1.6,则该表 exception如下:

Exception in thread "main" java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory
    at org.quartz.impl.StdSchedulerFactory.<init>(StdSchedulerFactory.java:274)
    at org.quartz.impl.StdSchedulerFactory.getDefaultScheduler(StdSchedulerFactory.java:1480)
    at QuartzTest.main(QuartzTest.java:10)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
    at java.net.URLClassLoader.findClass(URLClassLoader.java:421)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
    ... 3 more

我的法典,如果刚刚开始并停止。 如果有任何机构能够帮助我,我将不胜感激。

同样在2.x版本中,我们为工伤制造物体的方式似乎有所不同。 1. 如果以这种方式制造物体:

JobDetail jobDetail = new JobDetail("jobDetail-s1", "jobDetailGroup-s1", SimpleQuartzJob.class);

民主选举学会说,它没有即时地介绍工作类型。

请提供帮助。

问题回答

Note that Quartz 2.0 is not supported by Spring 3 branch until the release of Spring 3.1 See here (Spring release notes).

这还使我nut了,因为他们的榜样和我们的旧法典不再奏效。 我假定,我们破碎了一件事,然而是春天/高明才打破了。 我转回了Qartz 1.5.2和3.0.5,一切都很好。

春古玛老会的另一个例子。

http://www.quartz-scheduler.org/documentation/quartz-2.x/migration-guide” rel=“nofollow”>Quartz 2.x Migration Guide





相关问题
Trigger function when Undeploying application

How do I automatically trigger Java function to stop Quartz scheduler jobs when I deploy/undeploy/redeploy JEE5 application in Glassfish.

Quartz API error

When I compile and run my application on my local machine with specs Windows XP sp2, JDK 5u11, I get no error. But when I try to run this application (compiled on Windows XP) on a Linux Debian distro, ...

How to call a CronTriggerBean stored in a JDBCJobStore?

I need some help. I am using Quartz Scheduling and have configured a CronTrigger to run each night at 10PM. I am using the JDBCJobStore to take advantage of the Clustering. The job runs at 10PM ...

How do I start Quartz in standalone mode?

According to its feature list "Quartz can run as a stand-alone program (within its own Java Virtual Machine), to be used via RMI". I could not find any documentation how to start it in stand-alone ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

热门标签