NutzCN Logo
问答 【nutz book]【定期清理未激活用户】报找不到类org.nutz.integration.quartz.job.CleanNonActiveUserJob
发布于 178天前 作者 jacky013 99 次浏览 复制 上一个帖子 下一个帖子
标签:

异常信息如下:
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: java.lang.ClassNotFoundException: org.nutz.integration.quartz.job.CleanNonActiveUserJob FAIL to create Ioc Bean name=[nutQuartzCronJobFactory]
beacase [java.lang.ClassNotFoundException: org.nutz.integration.quartz.job.CleanNonActiveUserJob]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:967)
at org.nutz.lang.Lang.wrapThrow(Lang.java:164)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:133)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:77)
at net.wendal.nutzbook.mvc.NutzBookNutFilter.init(NutzBookNutFilter.java:21)
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.(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4830)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5510)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
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: java.lang.ClassNotFoundException: org.nutz.integration.quartz.job.CleanNonActiveUserJob FAIL to create Ioc Bean name=[nutQuartzCronJobFactory]
beacase [java.lang.ClassNotFoundException: org.nutz.integration.quartz.job.CleanNonActiveUserJob]
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:141)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:196)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:221)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:140)
at net.wendal.nutzbook.MainSetup.init(MainSetup.java:41)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:270)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:119)
... 15 more
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.nutz.integration.quartz.job.CleanNonActiveUserJob
at org.nutz.lang.Lang.wrapThrow(Lang.java:148)
at org.nutz.lang.Lang.wrapThrow(Lang.java:147)
at org.nutz.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:21)
at org.nutz.ioc.weaver.DefaultWeaver.onCreate(DefaultWeaver.java:74)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:135)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.nutz.integration.quartz.job.CleanNonActiveUserJob
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:259)
at org.nutz.integration.quartz.NutQuartzCronJobFactory.init(NutQuartzCronJobFactory.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.nutz.ioc.trigger.MethodEventTrigger.trigger(MethodEventTrigger.java:18)
... 23 more
cron.properties配置信息如下:

clean non-active user

cron.CleanNonActiveUserJob=0 0/2 * * * ?

7 回复

写完整类名,含package

cron.完整类名=xxxx

来自炫酷的 NutzCN

还是不行,
cron.org.nutz.integration.quartz.job.CleanNonActiveUserJob=0 0/2 * * * ?

这个类是jar包nutz-integration-quartz-1.b.52.jar里的吗?我看了下这个jar包确实没有这个类,在哪儿可以下载到包含这个类的jar包

@jacky013 等等,那是自己建的类啊

来自炫酷的 NutzCN

那段配置的意思是

做一个类,实现job接口,然后声明一个cron表达式让它运行

来自炫酷的 NutzCN

嗯,可以了,谢谢

新版插件有注解,可以看看

来自炫酷的 NutzCN

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