quartz 部署到tomcat下面报错

owensliu 发布于 2015/04/14 21:46
阅读 2K+
收藏 0

代码在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


加载中
0
s
senyan
我遇到了一模一样的问题,你是怎么解决的
owensliu
owensliu
回复 @senyan : 当时我是以排除法,把jetty 和quart 相关的一些 jar 包补上就可以了
s
senyan
@owensliu 回复@owensliu : 是缺少quartz那个jar包吗
owensliu
owensliu
是jar 包问题
返回顶部
顶部