【发布时间】:2012-12-17 17:10:21
【问题描述】:
我正在尝试在带有自定义 ServiceLocator 的石英 InterruptableJob#execute 方法中使用 EJB,但是出现以下异常:
org.quartz.JobExecutionException: java.lang.ClassCastException: Cannot cast $Proxy450 to com.test.service.TestService [See nested exception: java.lang.ClassCastException: Cannot cast $Proxy450 to com.test.service.TestService]
at com.test.job.TestJob.execute(TestJob.java:107) [ecm-ejb.jar:]
at org.quartz.core.JobRunShell.run(JobRunShell.java:203) [quartz-1.5.2.jar:1.5.2]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) [quartz-1.5.2.jar:1.5.2]
我能做些什么让 EJB 和 Quartz 一起玩?
容器:JBoss AS 7.1
【问题讨论】:
标签: ejb quartz-scheduler