java 读取 weblogic,weblogic,部署没有从使用Spring配置的WEB-INF/类读取属性

I have a similar problem to: Using external properties files in weblogic and note that the accepted answer there is mainly working for me.

However, I have a follow-up (sorry, cannot work out how to just add comments to re-open the original question)

Does anyone know what the actual cause of this is and the "correct" (if there is such a thing) solution, or do people take copying files to the domain as a common practise in weblogic (10.3.3)

What I am using is:

Spring config has this:

the messages bean is then referenced in other beans

The error is

<11-Apr-2011 11:47:23 o'clock BST>

weblogic.application.ModuleException:

at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1514)

at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)

at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)

at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)

Truncated. see log file for complete stacktrace

Caused By: java.util.MissingResourceException: Can't find bundle for base name config/messages, locale en_GB

at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1521)

at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)

at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

Truncated. see log file for complete stacktrace

I have tried removing the config/ at the start (and copying the messages.properties to WEB-INF and also WEB-INF/classes, to no avail. Should also point out that all of messages, messages _en_GB and messages _en_US exist

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值