NutzCN Logo
问答 jetbrick-template-2x集成出了点问题--jetbrick.template.web.JetWebEngine未发现?
发布于 3228天前 作者 qq_cc72d8e9 2118 次浏览 复制 上一个帖子 下一个帖子
标签:

2016-01-14 17:47:57,923 [localhost-startStop-1] ERROR org.nutz.mvc.impl.NutLoading - Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'jetbrick.template.web.nutz.JetTemplateViewMaker' becasue: java.lang.NoClassDefFoundError: jetbrick/template/web/JetWebEngine
at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:19)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:988)
at org.nutz.mvc.impl.NutLoading.createViewMakers(NutLoading.java:335)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:162)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:106)
at org.nutz.mvc.ActionHandler.(ActionHandler.java:19)
at org.nutz.mvc.NutFilter.init(NutFilter.java:78)
at com.nutz.demo.mvc.NutzBookNutFilter.init(NutzBookNutFilter.java:43)
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:4841)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5535)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1574)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1564)
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.NoClassDefFoundError: jetbrick/template/web/JetWebEngine
at jetbrick.template.web.nutz.JetTemplateViewMaker.(JetTemplateViewMaker.java:37)
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.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:16)
... 20 more
Caused by: java.lang.ClassNotFoundException: jetbrick.template.web.JetWebEngine
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1854)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1703)
... 26 more

6 回复
Caused by: java.lang.ClassNotFoundException: jetbrick.template.web.JetWebEngine

少包了?

jetbrick.template.web.nutz.JetTemplateViewMaker 看上去是模板自带的? 是不是版本有问题?

@wendal jar已经导入。jetbrick-template-nutz-2.1.0.jar

@Rekoe jar已经导入。jetbrick-template-nutz-2.1.0.jar

你只引入了集成jar,但模板引擎本身的jar没引入...

只是做一下记录,集成jetbrick-template-2x需要的jar。
1.jetbrick-template-2.1.0.jar
2.jetbrick-template-nutz-2.1.0.jar
3.jetbrick-template-web-2.1.0.jar
4.antlr4-runtime-4.3.jar
5.jetbrick-commons-2.1.0.jar
6.slf4j-api-1.7.13.jar

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