NutzCN Logo
问答 做个beetl的例子玩玩 发现了这个问题
发布于 2966天前 作者 哎呦哥哥 4369 次浏览 复制 上一个帖子 下一个帖子
标签:
org.nutz.lang.born.BorningException: Fail to born 'org.beetl.ext.nutz.BeetlViewMaker' becasue: java.lang.NoClassDefFoundError: org/antlr/v4/runtime/CharStream
	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:345)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:163)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:107)
	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.fang.mvc.ProjectNutFilter.init(ProjectNutFilter.java:27)
	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:4939)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5633)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoClassDefFoundError: org/antlr/v4/runtime/CharStream
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:191)
	at org.beetl.core.TemplateEngineFactory.getEngine(TemplateEngineFactory.java:16)
	at org.beetl.core.GroupTemplate.init(GroupTemplate.java:164)
	at org.beetl.core.GroupTemplate.<init>(GroupTemplate.java:115)
	at org.beetl.ext.nutz.BeetlViewMaker.init(BeetlViewMaker.java:90)
	at org.beetl.ext.nutz.BeetlViewMaker.<init>(BeetlViewMaker.java:55)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:16)
	... 21 more
Caused by: java.lang.ClassNotFoundException: org.antlr.v4.runtime.CharStream
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1891)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1734)
	... 33 more

启动报错

5 回复

beetl依赖antlr 4.2+

@wendal 哦哦 我还以为缺少 nutz-plugins-views 这个
为什么nutzwk的pom里面没有antlr

@qq_999005dc maven会自动添加

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