NutzCN Logo
问答 nutz1.r56启动报错java.lang.NoSuchMethodError
发布于 1697天前 作者 qq_a96bd60c 1685 次浏览 复制 上一个帖子 下一个帖子
标签:

2020-04-29 16:36:08,809 INFO [localhost-startStop-1] o.n.m.NutFilter#log [81] NutFilter[nutz] starting ...
2020-04-29 16:36:09,011 DEBUG [localhost-startStop-1] o.n.r.Scans#log [84] Locations for Scans:
[JarResourceLocation [jarPath=file:/E:/apache-tomcat-7.0.53/apache-tomcat-7.0.53/webapps/dataManage/WEB-INF/lib/cmp-java-api-20200108test.jar], JarResourceLocation [jarPath=E:\apache-tomcat-7.0.53\apa
che-tomcat-7.0.53\bin\bootstrap.jar], FileSystemResourceLocation [root=E:\eclipse-mars-gai], JarResourceLocation [jarPath=E:\apache-tomcat-7.0.53\apache-tomcat-7.0.53\bin\tomcat-juli.jar], JarResource
Location [jarPath=C:\Program Files\Java\jdk1.8.0_121\lib\tools.jar]]
四月 29, 2020 4:36:09 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
java.lang.NoSuchMethodError: org.nutz.resource.Scans.init(Ljavax/servlet/ServletContext;)Lorg/nutz/resource/Scans;
at org.nutz.mvc.config.AbstractNutConfig.(AbstractNutConfig.java:43)
at org.nutz.mvc.config.FilterNutConfig.(FilterNutConfig.java:15)
at org.nutz.mvc.NutFilter._init(NutFilter.java:85)
at org.nutz.mvc.NutFilter.init(NutFilter.java:65)
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(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)

四月 29, 2020 4:36:09 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
四月 29, 2020 4:36:09 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/dataManage] startup failed due to previous errors
四月 29, 2020 4:36:09 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory E:\apache-tomcat-7.0.53\apache-tomcat-7.0.53\webapps\ROOT
四月 29, 2020 4:36:09 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
四月 29, 2020 4:36:09 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
四月 29, 2020 4:36:09 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4209 ms

2 回复

目测有多个版本的nutz存在

找到问题了,有一个第三方jar包本身打包时包含了nutz-core,然后我这个项目也导入了nutz-core的jar包,感谢大神

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