NutzCN Logo
问答 org.nutz.mvc.LoadingException: org.nutz.ioc.IocException:
发布于 2520天前 作者 13080918283 2077 次浏览 复制 上一个帖子 下一个帖子
标签:
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
	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:1010)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:201)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	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:4590)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	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: org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:260)
	at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:333)
	at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:34)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:20)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'fileUpload' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:158)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:202)
	... 24 more

9 回复

fileUpload定义在哪个ioc js文件里面?路径是什么,还有就是@IocBy贴一下

@Modules(scanPackage = true, packages = "com.supermap")
@Ok("json:full")
@Fail("http:500")
@IocBy(type = ComboIocProvider.class, args = {"*json", "config/ioc/", "*anno", "com.file","*dubbo", "dubbo.xml"}) 
@Localization(value = "locales/", defaultLocalizationKey = "zh_CN")
@Encoding(input = "UTF-8", output = "UTF-8")
@ChainBy(args = "config/chain/nutzwk-mvc-chain.json")

ioc js d的路径是/src/main/resources/config/ioc/upload.json

启动日志发一下

INFO  2017-12-21 16:28:16 [org.nutz.mvc.NutFilter._init(85)] - NutFilter[nutz] starting ...
INFO  2017-12-21 16:28:16 [org.nutz.mvc.impl.NutLoading.load(55)] - Nutz Version : 1.r.65-SNAPSHOT 
INFO  2017-12-21 16:28:16 [org.nutz.mvc.impl.NutLoading.load(56)] - Nutz.Mvc[nutz] is initializing ...
INFO  2017-12-21 16:28:16 [org.nutz.ioc.loader.annotation.AnnotationIocLoader.<init>(50)] -  > scan 'com.file'
INFO  2017-12-21 16:28:16 [org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(98)] -    > add 'readController                          ' - com.file.controllers.ReadController
INFO  2017-12-21 16:28:16 [org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(98)] -    > add 'uploadController                        ' - com.file.controllers.UploadController
INFO  2017-12-21 16:28:16 [com.alibaba.dubbo.common.logger.LoggerFactory.?(?)] - using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
INFO  2017-12-21 16:28:16 [org.nutz.ioc.impl.NutIoc.<init>(137)] - ... NutIoc init complete
INFO  2017-12-21 16:28:16 [org.nutz.mvc.impl.NutLoading.evalUrlMapping(159)] - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
ERROR 2017-12-21 16:28:16 [org.nutz.mvc.impl.NutLoading.load(125)] - Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:260)
	at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:333)
	at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:34)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:20)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	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:4590)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	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: org.nutz.ioc.ObjectLoadException: Object 'fileUpload' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:158)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:202)
	... 24 more
ERROR 2017-12-21 16:28:16 [org.nutz.mvc.impl.NutLoading.load(127)] - try to depose ioc
INFO  2017-12-21 16:28:16 [org.nutz.ioc.impl.NutIoc.depose(276)] - org.nutz.ioc.impl.NutIoc@1341067707 is closing. startup date [17-12-21 16:28:16.459]
INFO  2017-12-21 16:28:16 [org.nutz.ioc.impl.NutIoc.depose(290)] - org.nutz.ioc.impl.NutIoc@1341067707 is deposed. startup date [17-12-21 16:28:16.459]
十二月 21, 2017 4:28:16 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
	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:1010)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:201)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:135)
	at org.nutz.mvc.ActionHandler.<init>(ActionHandler.java:19)
	at org.nutz.mvc.NutFilter._init(NutFilter.java:91)
	at org.nutz.mvc.NutFilter.init(NutFilter.java:69)
	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:4590)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
	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: org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:260)
	at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:333)
	at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:34)
	at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:20)
	at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
	at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
	at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
	... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'fileUpload' without define!
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:158)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:202)
	... 24 more

十二月 21, 2017 4:28:16 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
十二月 21, 2017 4:28:16 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/file-client] startup failed due to previous errors
十二月 21, 2017 4:28:16 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
十二月 21, 2017 4:28:16 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
十二月 21, 2017 4:28:16 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4118 ms

日志要debug级别啊

INFO 2017-12-21 17:32:52 [org.nutz.mvc.NutFilter._init(85)] - NutFilter[nutz] starting ...
DEBUG 2017-12-21 17:32:52 [org.nutz.resource.Scans.printLocations(527)] - Locations count=4 time use 12ms
DEBUG 2017-12-21 17:32:52 [org.nutz.resource.Scans.printLocations(527)] - Locations count=37 time use 24ms
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.config.AbstractNutConfig.createLoading(61)] - Loading by class org.nutz.mvc.impl.NutLoading
INFO 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(55)] - Nutz Version : 1.r.65-SNAPSHOT
INFO 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(56)] - Nutz.Mvc[nutz] is initializing ...
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(60)] - Web Container Information:
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(61)] - - Default Charset : GBK
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(62)] - - Current . path : E:\开发软件包\explise安装包\eclipse-jee-neon-2-win32-x86_64\eclipse.
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(63)] - - Java Version : 1.8.0_121
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(64)] - - File separator : \
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(65)] - - Timezone : Asia/Shanghai
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(66)] - - OS : Windows 7 amd64
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(67)] - - ServerInfo : Apache Tomcat/8.5.13
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(68)] - - Servlet API : 3.1
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(73)] - - ContextPath : /file-client
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(74)] - - context.tempdir : D:\work\transInlineWorkSpace.metadata.plugins\org.eclipse.wst.server.core\tmp4\work\Catalina\localhost\file-client
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.load(75)] - - MainModule : com.supermap.client.core.Module
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.createContext(239)] - >> app.root = D:/work/transInlineWorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/file-dubbo-client
DEBUG 2017-12-21 17:32:52 [org.nutz.castor.Castors.reload(115)] - Using 95 castor for Castors
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.createIoc(379)] - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "*anno", "com.supermap.file", "*dubbo", "dubbo.xml"],init=[])
DEBUG 2017-12-21 17:32:52 [org.nutz.ioc.loader.json.JsonLoader.(57)] - Loaded 0 bean define from path=[] --> []
INFO 2017-12-21 17:32:52 [org.nutz.ioc.loader.annotation.AnnotationIocLoader.(50)] - > scan 'com.supermap.file'
DEBUG 2017-12-21 17:32:52 [org.nutz.resource.Scans.scan(280)] - Found 6 resource by src( com/supermap/file/ ) , regex( ^.+[.]class$ )
INFO 2017-12-21 17:32:52 [org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(98)] - > add 'readController ' - com.supermap.file.controllers.ReadController
INFO 2017-12-21 17:32:52 [org.nutz.ioc.loader.annotation.AnnotationIocLoader.addClass(98)] - > add 'uploadController ' - com.supermap.file.controllers.UploadController
DEBUG 2017-12-21 17:32:52 [org.nutz.ioc.loader.combo.ComboIocLoader.createIocLoader(114)] - found dubbo -- org.nutz.integration.dubbo.DubboIocLoader
INFO 2017-12-21 17:32:52 [com.alibaba.dubbo.common.logger.LoggerFactory.?(?)] - using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter
INFO 2017-12-21 17:32:52 [org.nutz.ioc.impl.NutIoc.(137)] - ... NutIoc init complete
INFO 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.evalUrlMapping(159)] - Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.createViewMakers(369)] - @Views(DefaultViewMaker.class)
DEBUG 2017-12-21 17:32:52 [org.nutz.resource.Scans.scan(280)] - Found 1 resource by src( config/chain/nutzwk-mvc-chain.json ) , regex( ^(.+[.])(js|json)$ )
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.chainconfig.JsonActionChainMakerConfiguretion.(37)] - ActionChain Config:
{
"default": {
"ps": ["org.nutz.mvc.impl.processor.UpdateRequestAttributesProcessor", "org.nutz.mvc.impl.processor.EncodingProcessor", "org.nutz.mvc.impl.processor.ModuleProcessor", "org.nutz.mvc.impl.processor.ActionFiltersProcessor", "org.nutz.mvc.impl.processor.AdaptorProcessor", "org.nutz.mvc.impl.processor.MethodInvokeProcessor", "org.nutz.mvc.impl.processor.ViewProcessor"],
"error": "org.nutz.mvc.impl.processor.FailProcessor"
}
}
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.createChainMaker(267)] - @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.Loadings.scanModuleInPackage(188)] - > scan 'com.supermap'
DEBUG 2017-12-21 17:32:52 [org.nutz.resource.Scans.scan(280)] - Found 16 resource by src( com/supermap/ ) , regex( ^.+[.]class$ )
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.Loadings.checkModule(203)] - >> add 'com.supermap.file.controllers.ReadController'
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.Loadings.checkModule(203)] - >> add 'com.supermap.file.controllers.UploadController'
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.Loadings.scanModules(158)] - module class location 'file:/D:/work/transInlineWorkSpace/.metadata/.plugins/org.eclipse.wst.server.core/tmp4/wtpwebapps/file-dubbo-client/WEB-INF/classes/'
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.Loadings.scanModuleInPackage(188)] - > scan 'com.supermap.client.core'
DEBUG 2017-12-21 17:32:52 [org.nutz.resource.Scans.scan(280)] - Found 2 resource by src( com/supermap/client/core/ ) , regex( ^.+[.]class$ )
DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.evalUrlMapping(196)] - Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
DEBUG 2017-12-21 17:32:53 [org.nutz.ioc.impl.NutIoc.get(173)] - Get 'fileUpload'<class org.nutz.mvc.upload.UploadAdaptor>
DEBUG 2017-12-21 17:32:53 [org.nutz.ioc.aop.SimpleAopMaker.(79)] - Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
DEBUG 2017-12-21 17:32:53 [org.nutz.ioc.impl.NutIoc.get(199)] - >> Load definition name=fileUpload
十二月 21, 2017 5:32:53 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
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:1010)
at org.nutz.lang.Lang.wrapThrow(Lang.java:201)
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 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:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
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: org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:260)
at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:333)
at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:34)
at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:20)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Object 'fileUpload' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:158)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:202)
... 24 more

十二月 21, 2017 5:32:53 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
十二月 21, 2017 5:32:53 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/file-client] startup failed due to previous errors
DEBUG 2017-12-21 17:32:53 [org.nutz.mvc.impl.NutActionChainMaker.eval(51)] - Eval FAIL!! : public java.util.List com.supermap.file.controllers.UploadController.upload(org.nutz.mvc.upload.TempFile,java.lang.String,java.lang.String,java.lang.String,javax.servlet.http.HttpServletRequest,java.lang.String) throws java.lang.Exception
org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:260)
at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:333)
at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:34)
at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:20)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
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 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:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
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: org.nutz.ioc.ObjectLoadException: Object 'fileUpload' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:158)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:202)
... 24 more
ERROR 2017-12-21 17:32:53 [org.nutz.mvc.impl.NutLoading.load(125)] - Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[fileUpload] For object [fileUpload] - type:[class org.nutz.mvc.upload.UploadAdaptor]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:260)
at org.nutz.mvc.impl.Loadings.evalObj(Loadings.java:333)
at org.nutz.mvc.impl.processor.AbstractProcessor.evalObj(AbstractProcessor.java:48)
at org.nutz.mvc.impl.processor.AdaptorProcessor.evalHttpAdaptor(AdaptorProcessor.java:34)
at org.nutz.mvc.impl.processor.AdaptorProcessor.init(AdaptorProcessor.java:20)
at org.nutz.mvc.impl.NutActionChainMaker.eval(NutActionChainMaker.java:38)
at org.nutz.mvc.impl.UrlMappingImpl.add(UrlMappingImpl.java:54)
at org.nutz.mvc.impl.NutLoading.evalUrlMapping(NutLoading.java:205)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:108)
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 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:4590)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5233)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
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: org.nutz.ioc.ObjectLoadException: Object 'fileUpload' without define!
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:158)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:202)
... 24 more
ERROR 2017-12-21 17:32:53 [org.nutz.mvc.impl.NutLoading.load(127)] - try to depose ioc
INFO 2017-12-21 17:32:53 [org.nutz.ioc.impl.NutIoc.depose(276)] - org.nutz.ioc.impl.NutIoc@1340693435 is closing. startup date [17-12-21 17:32:52.892]
INFO 2017-12-21 17:32:53 [org.nutz.ioc.impl.NutIoc.depose(290)] - org.nutz.ioc.impl.NutIoc@1340693435 is deposed. startup date [17-12-21 17:32:52.892]
十二月 21, 2017 5:32:53 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
十二月 21, 2017 5:32:53 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
十二月 21, 2017 5:32:53 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3418 ms

DEBUG 2017-12-21 17:32:52 [org.nutz.mvc.impl.NutLoading.createIoc(379)] - @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "*anno", "com.supermap.file", "*dubbo", "dubbo.xml"],init=[])

日志里面的@IocBy跟你贴的代码不一致

已解决,兽总,是我iocby的问题

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