NutzCN Logo
问答 求大神看一下这应该是哪错啦
发布于 2603天前 作者 qq_bf573162 1840 次浏览 复制 上一个帖子 下一个帖子
标签:
org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: IocBean[dao] throw Exception when creating
	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:990)
	at org.nutz.lang.Lang.wrapThrow(Lang.java:200)
	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:4958)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5652)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
	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(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.nutz.ioc.IocException: IocBean[dao] throw Exception when creating
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:149)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:210)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:239)
	at org.nutz.ioc.impl.NutIoc.get(NutIoc.java:146)
	at com.boshida.model.MainSetup.init(MainSetup.java:14)
	at org.nutz.mvc.impl.NutLoading.evalSetup(NutLoading.java:274)
	at org.nutz.mvc.impl.NutLoading.load(NutLoading.java:121)
	... 15 more
Caused by: org.nutz.lang.born.BorningException: Fail to born or cast to 'org.nutz.dao.impl.NutDao'
 by args: [@({
	CreateTime:"2017-11-07 11:06:18",
	ActiveCount:0,
	PoolingCount:0,
	CreateCount:0,
	DestroyCount:0,
	CloseCount:0,
	ConnectCount:0,
	Connections:[
	]
})]
 because:java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:25)
	at org.nutz.ioc.weaver.DefaultWeaver.born(DefaultWeaver.java:67)
	at org.nutz.ioc.impl.ObjectMakerImpl.make(ObjectMakerImpl.java:114)
	... 21 more
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
	at com.alibaba.druid.stat.DruidDataSourceStatManager.<clinit>(DruidDataSourceStatManager.java:44)
	at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:377)
	at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:397)
	at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:393)
	at org.nutz.trans.Trans.getConnectionAuto(Trans.java:263)
	at org.nutz.dao.jdbc.Jdbcs.getExpert(Jdbcs.java:106)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:187)
	at org.nutz.dao.impl.DaoSupport.setDataSource(DaoSupport.java:178)
	at org.nutz.dao.impl.NutDao.<init>(NutDao.java:104)
	at org.nutz.dao.impl.NutDao$FC$36f8f49f88a4812f29d5035d0a347d6d.invoke(NutDao.java)
	at org.nutz.lang.born.AbstractConstructorBorning.call(AbstractConstructorBorning.java:25)
	at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:19)
	... 23 more
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
	at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)
	... 35 more

十一月 07, 2017 11:06:18 上午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
十一月 07, 2017 11:06:18 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/TongXuns] startup failed due to previous errors
十一月 07, 2017 11:06:18 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/TongXuns] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十一月 07, 2017 11:06:18 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc
严重: The web application [/TongXuns] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十一月 07, 2017 11:06:18 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/TongXuns] appears to have started a thread named [Druid-ConnectionPool-Create] but has failed to stop it. This is very likely to create a memory leak.
十一月 07, 2017 11:06:18 上午 org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
严重: The web application [/TongXuns] appears to have started a thread named [Druid-ConnectionPool-Destory] but has failed to stop it. This is very likely to create a memory leak.
十一月 07, 2017 11:06:18 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
十一月 07, 2017 11:06:18 上午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
十一月 07, 2017 11:06:18 上午 org.apache.catalina.startup.Catalina start
信息: Server startup in 3821 ms
3 回复

druid版本太低,用最新版

标题写问题的摘要,不要写无意义的救助

NoClassDefFoundError: org/apache/commons/logging/LogFactory

common logger有吗?
把dao.js文件发出来看看。

对着nutz-book-project 检查一下配置文件和依赖包。

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