NutzCN Logo
问答 nutz-integration-quartz使用出现找不到方法
发布于 2229天前 作者 yang354540079 1665 次浏览 复制 上一个帖子 下一个帖子
标签:
十月 09, 2018 3:23:12 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter NutFilter
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[nutQuartzCronJobFactory] throw Exception when creating
	at org.nutz.mvc.LoadingException$FC$4109f22f586ca113ef5fd20da0cf07bd.invoke(LoadingException.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
	at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
	at org.nutz.lang.Mirror.born(Mirror.java:1022)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:203)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4700)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5340)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: org.nutz.ioc.IocException: IocBean[nutQuartzCronJobFactory] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:241)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:271)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:161)
	at com.test.MainSetup.init(MainSetup.java:61)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	... 15 more
Caused by: java.lang.NoSuchMethodError: org.quartz.Scheduler.checkExists(Lorg/quartz/JobKey;)Z
	at org.nutz.integration.quartz.Quartzs.cron(Quartzs.java:25)
	at org.nutz.integration.quartz.NutQuartzCronJobFactory.add(NutQuartzCronJobFactory.java:65)
	at org.nutz.integration.quartz.NutQuartzCronJobFactory.addPackage(NutQuartzCronJobFactory.java:52)
	at org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:31)
	at org.nutz.integration.quartz.NutQuartzCronJobFactory$FM$init$00daf613909384511eb312fbdf1eb08f.invoke(NutQuartzCronJobFactory.java)
	at org.nutz.ioc.impl.ObjectMakerImpl$2.trigger(ObjectMakerImpl.java:180)
	at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:89)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
	... 21 more
2 回复

quartz版本低了,升级一下

默认引用的的2.3.0,exclusion了shiro-quartz中的quartz正常了

添加回复
请先登陆
回到顶部