NutzCN Logo
问答 启动tomcat读取db.properties配置文件报错
发布于 3200天前 作者 qq_561f5fd6 3812 次浏览 复制 上一个帖子 下一个帖子
标签: dao tomcat ioc

捕获.PNG

org.nutz.mvc.LoadingException: org.nutz.ioc.IocException: Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties FAIL to create Ioc Bean name=[conf]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties] FAIL to create Ioc Bean name=[dataSource]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties FAIL to create Ioc Bean name=[conf]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties]] FAIL to create Ioc Bean name=[dao]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties FAIL to create Ioc Bean name=[conf]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties] FAIL to create Ioc Bean name=[dataSource]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties FAIL to create Ioc Bean name=[conf]
beacase [Fail to set '[db.properties]'[ [Ljava.lang.String;@60f1439d ] by setter org.nutz.ioc.impl.PropertiesProxy.'setPaths()' because [java.lang.RuntimeException: folder or file like '^.+[.]properties$' no found in db.properties]: folder or file like '^.+[.]properties$' no found in db.properties]]]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.nutz.lang.born.ConstructorBorning.born(ConstructorBorning.java:17)
at org.nutz.lang.born.BornContext.doBorn(BornContext.java:60)
at org.nutz.lang.Mirror.born(Mirror.java:967)
at org.nutz.lang.Lang.wrapThrow(Lang.java:164)

2 回复

那是报dao.js中写错了,dataSource的定义写错
自豪地采用 NutzCN ionic

谢谢,解决了。

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