quartz 部署到tomcat下面报错
代码在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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
是jar 包问题
@owensliu 回复
@owensliu : 是缺少quartz那个jar包吗
回复
@senyan : 当时我是以排除法,把jetty 和quart 相关的一些 jar 包补上就可以了
我遇到了一模一样的问题,你是怎么解决的