java 读 tomcat 配置文件_启动tomcat读取db.properties配置文件报错

在启动Tomcat时,尝试读取db.properties配置文件时出现异常。错误信息显示,Nut框架在设置PropertiesProxy的路径时找不到符合'^.+[.]properties$'模式的folder或file。这导致了Ioc Bean创建失败,影响了conf、dataSource和dao的初始化。
摘要由CSDN通过智能技术生成

ijp6si7ag54rodin90fimvce

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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值