2014-03-19 35 views
0

我得到以下异常无法运行在石英得到例外的工作作为非法访问

INFO: Illegal access: this web application instance has been stopped already. Could not load org.quartz.impl.jdbcjobstore.TriggerPersistenceDelegate$TriggerPropertyBundle. 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:1600) 
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) 
    at org.quartz.impl.jdbcjobstore.CronTriggerPersistenceDelegate.loadExtendedTriggerProperties(CronTriggerPersistenceDelegate.java:89) 
    at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:1819) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1531) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2808) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:2759) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:2757) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3787) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTriggers(JobStoreSupport.java:2756) 
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272) 

Exception in thread "MyScheduler_QuartzSchedulerThread" java.lang.NoClassDefFoundError: org/quartz/impl/jdbcjobstore/TriggerPersistenceDelegate$TriggerPropertyBundle 
    at org.quartz.impl.jdbcjobstore.CronTriggerPersistenceDelegate.loadExtendedTriggerProperties(CronTriggerPersistenceDelegate.java:89) 
    at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.selectTrigger(StdJDBCDelegate.java:1819) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.retrieveTrigger(JobStoreSupport.java:1531) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTrigger(JobStoreSupport.java:2808) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:2759) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport$40.execute(JobStoreSupport.java:2757) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3787) 
    at org.quartz.impl.jdbcjobstore.JobStoreSupport.acquireNextTriggers(JobStoreSupport.java:2756) 
    at org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:272) 
Caused by: java.lang.ClassNotFoundException: org.quartz.impl.jdbcjobstore.TriggerPersistenceDelegate$TriggerPropertyBundle 
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) 
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559) 
    ... 9 more 

有什么能为这个错误的可能原因是什么?帮我解决这个错误。

回答

1

这个原因

Caused by: java.lang.ClassNotFoundException: org.quartz.impl.jdbcjobstore.TriggerPersistenceDelegate$TriggerPropertyBundle 
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714) 

请确保您有必要的石英罐子在classphath

+0

它在那里。我正在使用'quartz-2.2.1.jar',它可以在我的库文件夹 – Ravi

0

所需的主要石英库quartz-all-xxx.jar使用任何的石英功能。

+0

下载'quartz-all-1.6.1.jar'并检查。 – Ravi