最新版的插件
这里是 MainModule
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
"*anno", "com.xxx.demo","*org.nutz.integration.quartz.QuartzIocLoader",
"*tx"})
@Ok("json:full")
这里是 MainSetup
public class MainSetup implements Setup {
public void init(NutConfig conf) {
Ioc ioc = conf.getIoc();
// Scheduler.class;
ioc.get(NutQuartzCronJobFactory.class);
......
启动时抛错
2016-03-07 13:51:58,222 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:124) ERROR - Error happend during start serivce!
org.nutz.ioc.IocException: Object 'nutQuartzCronJobFactory' without define! For object [nutQuartzCronJobFactory] - type:[class org.nutz.integration.quartz.NutQuartzCronJobFactory]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:211)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:229)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:148)
at com.zyhk.paymentBalance.MainSetup.init(MainSetup.java:15)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:276)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:120)
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at com.zyhk.paymentBalance.NutzNutFilter.init(NutzNutFilter.java:22)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.ObjectLoadException: Object 'nutQuartzCronJobFactory' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:154)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:176)
... 21 more
2016-03-07 13:51:58,223 org.nutz.mvc.impl.NutLoading.load(NutLoading.java:126) ERROR - try to depose ioc
2016-03-07 13:51:58,226 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:245) INFO - org.nutz.ioc.impl.NutIoc@31975999 is closing. startup date [16-03-07 13:51:57.976]
2016-03-07 13:51:58,227 org.nutz.ioc.impl.NutIoc.depose(NutIoc.java:249) INFO - org.nutz.ioc.impl.NutIoc@31975999 is deposed. startup date [16-03-07 13:51:57.976]
三月 07, 2016 1:51:58 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: Object 'nutQuartzCronJobFactory' without define! For object [nutQuartzCronJobFactory] - type:[class org.nutz.integration.quartz.NutQuartzCronJobFactory]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
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:988)
at org.nutz.lang.Lang.wrapThrow(Lang.java:165)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:134)
at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:87)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
at com.zyhk.paymentBalance.NutzNutFilter.init(NutzNutFilter.java:22)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.IocException: Object 'nutQuartzCronJobFactory' without define! For object [nutQuartzCronJobFactory] - type:[class org.nutz.integration.quartz.NutQuartzCronJobFactory]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:211)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:229)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:148)
at com.zyhk.paymentBalance.MainSetup.init(MainSetup.java:15)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:276)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:120)
... 16 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'nutQuartzCronJobFactory' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:154)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:176)
... 21 more
三月 07, 2016 1:51:58 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
三月 07, 2016 1:51:58 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/paymentBalance] startup failed due to previous errors
三月 07, 2016 1:51:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
三月 07, 2016 1:51:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
三月 07, 2016 1:51:58 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3204 ms