NutzCN Logo
问答 照着文档打,启动init报ioc容器加载错误
发布于 2383天前 作者 qq_0f153e81 1407 次浏览 复制 上一个帖子 下一个帖子
标签:

18-06-14 11:14:49.723 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
18-06-14 11:14:49.894 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
18-06-14 11:14:49.921 DEBUG [localhost-startStop-1] Locations count=4 time use 12ms
18-06-14 11:14:49.926 DEBUG [localhost-startStop-1] Locations count=9 time use 5ms
18-06-14 11:14:49.942 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
18-06-14 11:14:49.946 INFO [localhost-startStop-1] Nutz Version : 1.r.65
18-06-14 11:14:49.947 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
18-06-14 11:14:49.947 DEBUG [localhost-startStop-1] Web Container Information:
18-06-14 11:14:49.949 DEBUG [localhost-startStop-1] - Default Charset : UTF-8
18-06-14 11:14:49.949 DEBUG [localhost-startStop-1] - Current . path : F:\Software\eclipse.
18-06-14 11:14:49.949 DEBUG [localhost-startStop-1] - Java Version : 1.8.0_71
18-06-14 11:14:49.950 DEBUG [localhost-startStop-1] - File separator : \
18-06-14 11:14:49.950 DEBUG [localhost-startStop-1] - Timezone : Asia/Shanghai
18-06-14 11:14:49.951 DEBUG [localhost-startStop-1] - OS : Windows 7 amd64
18-06-14 11:14:49.951 DEBUG [localhost-startStop-1] - ServerInfo : Apache Tomcat/8.0.50
18-06-14 11:14:49.951 DEBUG [localhost-startStop-1] - Servlet API : 3.1
18-06-14 11:14:49.952 DEBUG [localhost-startStop-1] - ContextPath : /AnswerActivity
18-06-14 11:14:49.952 DEBUG [localhost-startStop-1] - context.tempdir : E:\java_file.metadata.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AnswerActivity
18-06-14 11:14:49.952 DEBUG [localhost-startStop-1] - MainModule : com.answer.MainModule
18-06-14 11:14:49.955 DEBUG [localhost-startStop-1] >> app.root = E:/java_file/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/AnswerActivity
18-06-14 11:14:50.042 DEBUG [localhost-startStop-1] Using 95 castor for Castors
18-06-14 11:14:50.043 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.answer", "*tx", "*async"],init=[])
18-06-14 11:14:50.090 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
18-06-14 11:14:50.091 DEBUG [localhost-startStop-1] loading [dao.js]
18-06-14 11:14:50.098 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
18-06-14 11:14:50.108 INFO [localhost-startStop-1] > scan 'com.answer'
18-06-14 11:14:50.112 DEBUG [localhost-startStop-1] Found 6 resource by src( com/answer/ ) , regex( ^.+[.]class$ )
18-06-14 11:14:50.119 WARN [localhost-startStop-1] NONE @IocBean found!! Check your ioc configure!! packages=[com.answer]
18-06-14 11:14:50.140 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
18-06-14 11:14:50.147 INFO [localhost-startStop-1] ... NutIoc init complete
18-06-14 11:14:50.152 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-06-14 11:14:50.155 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
18-06-14 11:14:50.163 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-06-14 11:14:50.174 DEBUG [localhost-startStop-1] module class location 'file:/E:/java_file/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/AnswerActivity/WEB-INF/classes/'
18-06-14 11:14:50.174 DEBUG [localhost-startStop-1] > scan 'com.answer'
18-06-14 11:14:50.178 DEBUG [localhost-startStop-1] Found 6 resource by src( com/answer/ ) , regex( ^.+[.]class$ )
18-06-14 11:14:50.185 WARN [localhost-startStop-1] None module classes found!!!
18-06-14 11:14:50.186 WARN [localhost-startStop-1] None @At found in any modules class!!
18-06-14 11:14:50.186 DEBUG [localhost-startStop-1] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
18-06-14 11:14:50.187 DEBUG [localhost-startStop-1] @Localization not define
18-06-14 11:14:50.189 INFO [localhost-startStop-1] Setup application...
18-06-14 11:14:50.193 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
18-06-14 11:14:50.194 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-06-14 11:14:50.195 DEBUG [localhost-startStop-1] >> Load definition name=$aop_async
18-06-14 11:14:50.199 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@2040140983
18-06-14 11:14:50.200 DEBUG [localhost-startStop-1] >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-06-14 11:14:50.209 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app]
18-06-14 11:14:50.218 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-06-14 11:14:50.218 DEBUG [localhost-startStop-1] >> Load definition name=dao
18-06-14 11:14:50.219 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
18-06-14 11:14:50.219 DEBUG [localhost-startStop-1] >> Make...'dao'<interface org.nutz.dao.Dao>
18-06-14 11:14:50.219 DEBUG [localhost-startStop-1] Save object 'dao' to [app]
18-06-14 11:14:50.221 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-06-14 11:14:50.221 DEBUG [localhost-startStop-1] >> Load definition name=dataSource
18-06-14 11:14:50.222 DEBUG [localhost-startStop-1] Remove object 'dao' from [app]
18-06-14 11:14:50.222 ERROR [localhost-startStop-1] Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[dao -> dataSource] For object [dataSource] - type:[]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:249)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:160)
at com.answer.MainSetup.init(MainSetup.java:12)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4708)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
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: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource'
at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:80)
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:152)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:194)
... 23 more
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1335)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1163)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nutz.lang.Lang.loadClass(Lang.java:2074)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:51)
... 26 more
18-06-14 11:14:50.225 ERROR [localhost-startStop-1] try to depose ioc
18-06-14 11:14:50.226 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@467815129 is closing. startup date [18-06-14 11:14:50.144]
18-06-14 11:14:50.226 DEBUG [localhost-startStop-1] Depose object '$aop_async' ...
18-06-14 11:14:50.227 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@467815129 is deposed. startup date [18-06-14 11:14:50.144]
六月 14, 2018 11:14:50 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[dao -> dataSource] For object [dataSource] - type:[]
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:285)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:108)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4708)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
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[dao -> dataSource] For object [dataSource] - type:[]
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:249)
at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:160)
at com.answer.MainSetup.init(MainSetup.java:12)
at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource'
at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:80)
at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:152)
at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:194)
... 23 more
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1335)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1163)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.nutz.lang.Lang.loadClass(Lang.java:2074)
at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:51)
... 26 more

六月 14, 2018 11:14:50 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
六月 14, 2018 11:14:50 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/AnswerActivity] startup failed due to previous errors
六月 14, 2018 11:14:50 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
六月 14, 2018 11:14:50 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
六月 14, 2018 11:14:50 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1659 ms

18-06-14 11:14:49.723 INFO [localhost-startStop-1] Select SystemLog as Nutz.Log implement
18-06-14 11:14:49.894 INFO [localhost-startStop-1] NutFilter[nutz] starting ...
18-06-14 11:14:49.921 DEBUG [localhost-startStop-1] Locations count=4 time use 12ms
18-06-14 11:14:49.926 DEBUG [localhost-startStop-1] Locations count=9 time use 5ms
18-06-14 11:14:49.942 DEBUG [localhost-startStop-1] Loading by class org.nutz.mvc.impl.NutLoading
18-06-14 11:14:49.946 INFO [localhost-startStop-1] Nutz Version : 1.r.65 
18-06-14 11:14:49.947 INFO [localhost-startStop-1] Nutz.Mvc[nutz] is initializing ...
18-06-14 11:14:49.947 DEBUG [localhost-startStop-1] Web Container Information:
18-06-14 11:14:49.949 DEBUG [localhost-startStop-1]  - Default Charset : UTF-8
18-06-14 11:14:49.949 DEBUG [localhost-startStop-1]  - Current . path  : F:\Software\eclipse\.
18-06-14 11:14:49.949 DEBUG [localhost-startStop-1]  - Java Version    : 1.8.0_71
18-06-14 11:14:49.950 DEBUG [localhost-startStop-1]  - File separator  : \
18-06-14 11:14:49.950 DEBUG [localhost-startStop-1]  - Timezone        : Asia/Shanghai
18-06-14 11:14:49.951 DEBUG [localhost-startStop-1]  - OS              : Windows 7 amd64
18-06-14 11:14:49.951 DEBUG [localhost-startStop-1]  - ServerInfo      : Apache Tomcat/8.0.50
18-06-14 11:14:49.951 DEBUG [localhost-startStop-1]  - Servlet API     : 3.1
18-06-14 11:14:49.952 DEBUG [localhost-startStop-1]  - ContextPath     : /AnswerActivity
18-06-14 11:14:49.952 DEBUG [localhost-startStop-1]  - context.tempdir : E:\java_file\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\AnswerActivity
18-06-14 11:14:49.952 DEBUG [localhost-startStop-1]  - MainModule      : com.answer.MainModule
18-06-14 11:14:49.955 DEBUG [localhost-startStop-1] >> app.root = E:/java_file/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/AnswerActivity
18-06-14 11:14:50.042 DEBUG [localhost-startStop-1] Using 95 castor for Castors
18-06-14 11:14:50.043 DEBUG [localhost-startStop-1] @IocBy(type=org.nutz.mvc.ioc.provider.ComboIocProvider, args=["*js", "ioc/", "*anno", "com.answer", "*tx", "*async"],init=[])
18-06-14 11:14:50.090 DEBUG [localhost-startStop-1] Found 1 resource by src( ioc/ ) , regex( ^(.+[.])(js|json)$ )
18-06-14 11:14:50.091 DEBUG [localhost-startStop-1] loading [dao.js]
18-06-14 11:14:50.098 DEBUG [localhost-startStop-1] Loaded 2 bean define from path=[ioc/] --> [dataSource, dao]
18-06-14 11:14:50.108 INFO [localhost-startStop-1]  > scan 'com.answer'
18-06-14 11:14:50.112 DEBUG [localhost-startStop-1] Found 6 resource by src( com/answer/ ) , regex( ^.+[.]class$ )
18-06-14 11:14:50.119 WARN [localhost-startStop-1] NONE @IocBean found!! Check your ioc configure!! packages=[com.answer]
18-06-14 11:14:50.140 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.aop.interceptor.async.Async by type=org.nutz.aop.interceptor.async.AsyncAopIocLoader
18-06-14 11:14:50.147 INFO [localhost-startStop-1] ... NutIoc init complete
18-06-14 11:14:50.152 INFO [localhost-startStop-1] Build URL mapping by org.nutz.mvc.impl.UrlMappingImpl ...
18-06-14 11:14:50.155 DEBUG [localhost-startStop-1] @Views(DefaultViewMaker.class)
18-06-14 11:14:50.163 DEBUG [localhost-startStop-1] @ChainBy(org.nutz.mvc.impl.NutActionChainMaker)
18-06-14 11:14:50.174 DEBUG [localhost-startStop-1] module class location 'file:/E:/java_file/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/AnswerActivity/WEB-INF/classes/'
18-06-14 11:14:50.174 DEBUG [localhost-startStop-1]  > scan 'com.answer'
18-06-14 11:14:50.178 DEBUG [localhost-startStop-1] Found 6 resource by src( com/answer/ ) , regex( ^.+[.]class$ )
18-06-14 11:14:50.185 WARN [localhost-startStop-1] None module classes found!!!
18-06-14 11:14:50.186 WARN [localhost-startStop-1] None @At found in any modules class!!
18-06-14 11:14:50.186 DEBUG [localhost-startStop-1] Use org.nutz.mvc.impl.NutEntryDeterminer as EntryMethodDeterminer
18-06-14 11:14:50.187 DEBUG [localhost-startStop-1] @Localization not define
18-06-14 11:14:50.189 INFO [localhost-startStop-1] Setup application...
18-06-14 11:14:50.193 DEBUG [localhost-startStop-1] Get 'dao'<interface org.nutz.dao.Dao>
18-06-14 11:14:50.194 DEBUG [localhost-startStop-1] Get '$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-06-14 11:14:50.195 DEBUG [localhost-startStop-1] 	 >> Load definition name=$aop_async
18-06-14 11:14:50.199 DEBUG [localhost-startStop-1] Found IocObject($aop_async) in AsyncAopIocLoader@2040140983
18-06-14 11:14:50.200 DEBUG [localhost-startStop-1] 	 >> Make...'$aop_async'<interface org.nutz.ioc.aop.config.AopConfigration>
18-06-14 11:14:50.209 DEBUG [localhost-startStop-1] Save object '$aop_async' to [app] 
18-06-14 11:14:50.218 DEBUG [localhost-startStop-1] Load AopConfigure for anno=org.nutz.ioc.aop.Aop by type=org.nutz.ioc.aop.config.impl.AnnotationAopConfigration
18-06-14 11:14:50.218 DEBUG [localhost-startStop-1] 	 >> Load definition name=dao
18-06-14 11:14:50.219 DEBUG [localhost-startStop-1] Found IocObject(dao) in JsonLoader(paths=[ioc/])
18-06-14 11:14:50.219 DEBUG [localhost-startStop-1] 	 >> Make...'dao'<interface org.nutz.dao.Dao>
18-06-14 11:14:50.219 DEBUG [localhost-startStop-1] Save object 'dao' to [app] 
18-06-14 11:14:50.221 DEBUG [localhost-startStop-1] Get 'dataSource'<>
18-06-14 11:14:50.221 DEBUG [localhost-startStop-1] 	 >> Load definition name=dataSource
18-06-14 11:14:50.222 DEBUG [localhost-startStop-1] Remove object 'dao' from [app] 
18-06-14 11:14:50.222 ERROR [localhost-startStop-1] Error happend during start serivce!
org.nutz.ioc.IocException: IocBean[dao -> dataSource] For object [dataSource] - type:[]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:249)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:160)
	at com.answer.MainSetup.init(MainSetup.java:12)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	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:285)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4708)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	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: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource'
	at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
	at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
	at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:80)
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:194)
	... 23 more
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1335)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1163)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.nutz.lang.Lang.loadClass(Lang.java:2074)
	at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:51)
	... 26 more
18-06-14 11:14:50.225 ERROR [localhost-startStop-1] try to depose ioc
18-06-14 11:14:50.226 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@467815129 is closing. startup date [18-06-14 11:14:50.144]
18-06-14 11:14:50.226 DEBUG [localhost-startStop-1] Depose object '$aop_async' ...
18-06-14 11:14:50.227 INFO [localhost-startStop-1] org.nutz.ioc.impl.NutIoc@467815129 is deposed. startup date [18-06-14 11:14:50.144]
六月 14, 2018 11:14:50 上午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter nutz
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[dao -> dataSource] For object [dataSource] - type:[]
	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:285)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4708)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5348)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
	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[dao -> dataSource] For object [dataSource] - type:[]
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:249)
	at org.nutz.ioc.val.ReferValue.get(ReferValue.java:24)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:64)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:240)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:270)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:160)
	at com.answer.MainSetup.init(MainSetup.java:12)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:278)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	... 15 more
Caused by: org.nutz.ioc.ObjectLoadException: Wrong type name: 'com.alibaba.druid.pool.DruidDataSource'
	at org.nutz.ioc.IocLoading.E(IocLoading.java:32)
	at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:55)
	at org.nutz.ioc.loader.map.MapLoader.load(MapLoader.java:80)
	at org.nutz.ioc.loader.combo.ComboIocLoader.load(ComboIocLoader.java:152)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:194)
	... 23 more
Caused by: java.lang.ClassNotFoundException: com.alibaba.druid.pool.DruidDataSource
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1335)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1163)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at org.nutz.lang.Lang.loadClass(Lang.java:2074)
	at org.nutz.ioc.IocLoading.map2iobj(IocLoading.java:51)
	... 26 more

六月 14, 2018 11:14:50 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
六月 14, 2018 11:14:50 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/AnswerActivity] startup failed due to previous errors
六月 14, 2018 11:14:50 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-nio-8080"]
六月 14, 2018 11:14:50 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-nio-8009"]
六月 14, 2018 11:14:50 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 1659 ms
4 回复

没加druid的jar?

@wendal 照着那个30分项目打的

@wendal 已解决 果然是没加 谢谢

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