NutzCN Logo
问答 1.r.53升为1.r.62报下面的错误,麻烦老大,帮忙看一下
发布于 2357天前 作者 qq_250553c2 1744 次浏览 复制 上一个帖子 下一个帖子
标签:
 org.nutz.mvc.impl.NutLoading | Error happend during start serivce!
org.nutz.lang.born.BorningException: Fail to born 'org.nutz.integration.quartz.QuartzIocLoader' becasue: java.lang.NoSuchMethodError: org.nutz.ioc.loader.json.JsonLoader: method <init>()V not found
	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:967)
	at org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(ComboIocLoader.java:113)
	at org.nutz.ioc.loader.combo.ComboIocLoader.<init>(ComboIocLoader.java:97)
	at org.nutz.mvc.ioc.provider.ComboIocProvider.create(ComboIocProvider.java:15)
	at org.nutz.mvc.impl.NutLoading.createIoc(NutLoading.java:373)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:101)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:77)
	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:4659)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5281)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
	at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1091)
	at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1830)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	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)
Caused by: java.lang.NoSuchMethodError: org.nutz.ioc.loader.json.JsonLoader: method <init>()V not found
	at org.nutz.integration.quartz.QuartzIocLoader.<init>(QuartzIocLoader.java:19)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
	at org.nutz.lang.born.EmptyArgsConstructorBorning.born(EmptyArgsConstructorBorning.java:16)
	... 25 more

7 回复

老的jar没删干净?

删干净了的,依旧报错,不知道是不是jar没有对应更新,或者说,是不是哪里注解没处理到导致的。
下面是我们项目使用的部分jar:
quartz-2.2.2.jar,quartz-jobs-2.2.2.jar,nutz-last.jar,nutz-1.r.62.jar,

启动的配置代码:


@SetupBy(MainSetup.class) @Modules(scanPackage=true) @IocBy(type=ComboIocProvider.class, args={ "*js", "ioc/", "*anno", "com.backend", "*tx", "*org.nutz.integration.quartz.QuartzIocLoader"}) @Fail("jsp:jsp.500") @Localization(value="language/", defaultLocalizationKey="zh_CN") @Filters(@By(type = CheckSession.class,args={"USER","/user/tologin"})) public class MainModule {}

"nutz-last.jar,nutz-1.r.62.jar" 这不两个jar吗?

那么可能是因为这个导致的吗?

... 难道他们不是重复的jar吗?

部分代码不一样

找到原因了,是因为nutz-last.jar,nutz-1.r.62.jar冲突了,谢谢老大提醒

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