weblogic, deployments are not reading properties from WEB-INF/classes, configured using Spring -
i have similar problem to: using external properties files in weblogic , note accepted answer there working me.
however, have follow-up (sorry, cannot work out how add comments re-open original question)
does know actual cause of , "correct" (if there such thing) solution, or people take copying files domain common practise in weblogic (10.3.3)
what using is: spring config has this:
<bean id="messages" class="java.util.resourcebundle" factory-method="getbundle"> <constructor-arg index="0" value="config/messages"/> </bean> the messages bean referenced in other beans error is
<code> <11-apr-2011 11:47:23 o'clock bst> <error> <deployer> <bea-149265> <failure occurred in execution of deployment request id '1302518829904' task '4'. error is: 'weblogic.application.moduleexception: ' weblogic.application.moduleexception: @ weblogic.servlet.internal.webappmodule.startcontexts(webappmodule.java:1514) @ weblogic.servlet.internal.webappmodule.start(webappmodule.java:486) @ weblogic.application.internal.flow.modulestatedriver$3.next(modulestatedriver.java:425) @ weblogic.application.utils.statemachinedriver.nextstate(statemachinedriver.java:41) @ weblogic.application.internal.flow.modulestatedriver.start(modulestatedriver.java:119) truncated. see log file complete stacktrace caused by: java.util.missingresourceexception: can't find bundle base name config/messages, locale en_gb @ java.util.resourcebundle.throwmissingresourceexception(resourcebundle.java:1521) @ java.util.resourcebundle.getbundleimpl(resourcebundle.java:1260) @ java.util.resourcebundle.getbundle(resourcebundle.java:715) @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) truncated. see log file complete stacktrace </code> i have tried removing config/ @ start (and copying messages.properties web-inf , web-inf/classes, no avail. should point out of messages, messages _en_gb , messages _en_us exist
your path reference doesn't have 'classpath' in it. have tried putting config directory in root of war?
Comments
Post a Comment