严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: java.lang.RuntimeException: java.lang.ClassNotFoundException: quartz
at org.nutz.mvc.LoadingException$FC$9a86caf9ff5d3b587784fcdf555a4a7d.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:990)
at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
at cm.core.mvc.MyNutFilter.init(MyNutFilter.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:4809)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5485)
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: java.lang.RuntimeException: java.lang.ClassNotFoundException: quartz
at org.nutz.lang.Lang.wrapThrow(Lang.java:184)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:23)
at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:381)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:103)
... 16 more
Caused by: java.lang.ClassNotFoundException: quartz
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(Unknown Source)
at org.nutz.lang.Lang.loadClass(Lang.java:2027)
at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:116)
at org.nutz.ioc.loader.combo.ComboIocLoader.(ComboIocLoader.java:92)
at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:20)
... 18 more
这是具体配置:
import org.nutz.mvc.filter.CheckSession;
import org.nutz.mvc.ioc.provider.ComboIocProvider;
//@Localization(value="msg/", defaultLocalizationKey="zh-CN")//国际化,暂时用不了
@Filters(@By(type=CheckSession.class, args={"user", "/toLogin"}))
@Ok("json:full")
@Fail("jsp:jsp.500")
@SetupBy(value=MainSetup.class)
//请注意星号!!不要拷贝少了
@IocBy(type=ComboIocProvider.class, args={"*js", "ioc/",
"*anno", "cm",
"*tx", // 事务拦截 aop
"*async",// 异步执行aop
"*quartz"// 添加quartz插件引用
})
@Modules(scanPackage=true)
@ChainBy(args="mvc/nutz-mvc-chain.js")
@AdaptBy(type=JsonAdaptor.class)
public class MainModule {}