quartz 部署到tomcat下面报错

发布于 2021-11-27 07:55:58 字数 3962 浏览 801 评论 4

代码在Eclipse 上面开发。一直使用jetty  运行。现在放到 tomcat7 下面出现如下的问题。

是什么原因导致?怎么解决? 

报错代码如下:

INFO: Illegal access: this web application instance has been stopped already.  Could not load net.sf.ehcache.store.disk.DiskStore$KeySet.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to

attempt to terminate the thread which caused the illegal access, and has no functional impact.

java.lang.IllegalStateException

        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1588)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
        at net.sf.ehcache.store.disk.DiskStore.keySet(DiskStore.java:521)
        at net.sf.ehcache.store.disk.DiskStorageFactory$DiskExpiryTask.run(DiskStorageFactory.java:828)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask. access$301(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
        at java.lang.Thread.run(Thread.java:724)


四月 14, 2015 9:29:31 下午 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already.  C
ould not load org.quartz.DisallowConcurrentExecution.  The eventual following st
ack trace is caused by an error thrown for debugging purposes as well as to atte
mpt to terminate the thread which caused the illegal access, and has no function
al impact.
java.lang.IllegalStateException
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1588)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1547)
        at org.quartz.impl.JobDetailImpl.isConcurrentExectionDisallowed(JobDetai
lImpl.java:388)
        at org.quartz.simpl.RAMJobStore.acquireNextTriggers(RAMJobStore.java:142
8)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
272)


Exception in thread "defaultScheduler_QuartzSchedulerThread" java.lang.NoClassDe
fFoundError: org/quartz/DisallowConcurrentExecution
        at org.quartz.impl.JobDetailImpl.isConcurrentExectionDisallowed(JobDetai
lImpl.java:388)
        at org.quartz.simpl.RAMJobStore.acquireNextTriggers(RAMJobStore.java:142
8)
        at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:
272)
Caused by: java.lang.ClassNotFoundException: org.quartz.DisallowConcurrentExecut
ion
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1702)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
der.java:1547)
        ... 3 more


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

凯凯我们等你回来 2021-12-03 11:12:05

是jar 包问题

刘备忘录 2021-12-03 09:08:57

@owensliu 回复
@owensliu : 是缺少quartz那个jar包吗

简单气质女生网名 2021-12-01 06:10:29

回复
@senyan : 当时我是以排除法,把jetty 和quart 相关的一些 jar 包补上就可以了

傾城如夢未必闌珊 2021-11-30 14:59:33

我遇到了一模一样的问题,你是怎么解决的

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文