gpt4 book ai didi

java.lang.ClassNotFoundException : org.quartz.jobs.FileScanListener

转载 作者:行者123 更新时间:2023-12-01 16:51:35 24 4
gpt4 key购买 nike

最近将quartz调度程序jar从版本2.1.6升级到2.3.2。将quartz.properties设置为旧配置并在quartz.properties中调用插件XMLSchedulingDataProcessorPlugin后,我开始收到classNotFound异常。所以我继续反编译quartz jar,发现2.3.2版本中缺少org.quartz.jobs包本身。任何人都可以帮助解决这个问题吗?

接收异常如下:

Caused by: java.lang.ClassNotFoundException: org.quartz.jobs.FileScanListener
at java.net.URLClassLoader.findClass(URLClassLoader.java:607) ~[?:1.8.0-internal]
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:844) ~[?:1.8.0-internal]
at java.lang.ClassLoader.loadClass(ClassLoader.java:823) ~[?:1.8.0-internal]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:325) ~[?:1.8.0-internal]
at java.lang.ClassLoader.loadClass(ClassLoader.java:803) ~[?:1.8.0-internal]
at java.lang.ClassLoader.defineClassImpl(Native Method) ~[?:1.8.0-internal]
at java.lang.ClassLoader.defineClass(ClassLoader.java:349) ~[?:1.8.0-internal]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:154) ~[?:1.8.0-internal]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:727) ~[?:1.8.0-internal]
at java.net.URLClassLoader.access$400(URLClassLoader.java:95) ~[?:1.8.0-internal]
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1182) ~[?:1.8.0-internal]
at java.security.AccessController.doPrivileged(AccessController.java:686) ~[?:1.8.0-internal]
at java.net.URLClassLoader.findClass(URLClassLoader.java:602) ~[?:1.8.0-internal]
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:844) ~[?:1.8.0-internal]
at java.lang.ClassLoader.loadClass(ClassLoader.java:823) ~[?:1.8.0-internal]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:325) ~[?:1.8.0-internal]
at java.lang.ClassLoader.loadClass(ClassLoader.java:803) ~[?:1.8.0-internal]
at org.quartz.simpl.InitThreadContextClassLoadHelper.loadClass(InitThreadContextClassLoadHelper.java:72) ~[quartz-2.3.2.jar:?]
at org.quartz.simpl.CascadingClassLoadHelper.loadClass(CascadingClassLoadHelper.java:114) ~[quartz-2.3.2.jar:?]
at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1084) ~[quartz-2.3.2.jar:?]
... 3 more

下面是我的quartz.properties:

org.quartz.scheduler.instanceName = TESTAPP
org.quartz.scheduler.jmx.export = true
org.quartz.threadPool.threadCount = 5

org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore

org.quartz.plugin.jobInitializer.class = org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin
org.quartz.plugin.jobInitializer.fileNames = testapp-jobs.xml
org.quartz.plugin.jobInitializer.failOnFileNotFound = true
org.quartz.plugin.jobInitializer.scanInterval = 0
org.quartz.plugin.jobInitializer.wrapInUserTransaction = false

最佳答案

来自这个专家 repository ,您需要使用最新版本的 quartz-jobs jar 文件。

我可以在名为org.quartz.jobs的包下看到FileScanListener.class文件。

solution

我希望这会有所帮助。

关于java.lang.ClassNotFoundException : org.quartz.jobs.FileScanListener,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61673644/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com