title: weblogic, deployments are not reading properties from WEB-INF/classes, configured using Spring
body: <p>I have a similar problem to: <a href="https://stackoverflow.com/questions/1245955/using-external-properties-files-in-weblogic">Using external properties files in weblogic</a> and note that the accepted answer there is mainly working for me.</p>
  
  <p>However, I have a follow-up (sorry, cannot work out how to just add comments to re-open the original question)</p>
  
  <p>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)</p>
  
  <p>What I am using is:
  Spring config has this:</p>
  
  <pre><code>&lt;bean id="messages" class="java.util.ResourceBundle" factory-method="getBundle"&gt;
       &lt;constructor-arg index="0" value="config/messages"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>the messages bean is then referenced in other beans
  The error is</p>
  
  <pre><code>&lt;code&gt;
  &lt;11-Apr-2011 11:47:23 o'clock BST&gt; &lt;Error&gt; &lt;Deployer&gt; &lt;BEA-149265&gt; &lt;Failure occurred in the execution of deployment request with ID '1302518829904' for task '4'. Error is: 'weblogic.application.ModuleException: '
  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
  &lt;/code&gt;
  </code></pre>
  
  <p>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</p>