title: Spring ReloadableResourceBundleMessageSource VS ResourceBundleMessageSource
body: <p>Hi I am trying to configure message sources in my Spring MVC web application .</p>
  <p>I have currently got it running with ReloadableResourceBundleMessageSource but I am not able to get it running with ResourceBundleMessageSource . I would have preferred to use ResourceBundleMessageSource because I dont need the Reload capability and ResourceBundleMessageSource is slightly more efficient.</p>
  <p>in my rootApplicationContext , I have defined the beans as follows.</p>
  <pre><code>        &lt;bean id=&quot;messageSource&quot;
          class=&quot;org.springframework.context.support.ReloadableResourceBundleMessageSource&quot;&gt;
          &lt;property name=&quot;basename&quot; value=&quot;/resources/locale/messages&quot; /&gt;
          &lt;property name=&quot;defaultEncoding&quot; value=&quot;UTF-8&quot;/&gt;
      &lt;/bean&gt;
  
      &lt;bean id=&quot;localeChangeInterceptor&quot;
          class=&quot;org.springframework.web.servlet.i18n.LocaleChangeInterceptor&quot;&gt;
          &lt;property name=&quot;paramName&quot; value=&quot;lang&quot; /&gt;
      &lt;/bean&gt;
  
      &lt;bean id=&quot;localeResolver&quot;
          class=&quot;org.springframework.web.servlet.i18n.SessionLocaleResolver&quot; /&gt;
  
      &lt;bean id=&quot;handlerMapping&quot;
          class=&quot;org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping&quot;&gt;
          &lt;property name=&quot;interceptors&quot;&gt;
              &lt;ref bean=&quot;localeChangeInterceptor&quot; /&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  </code></pre>
  <p><strong>This works FINE ..</strong></p>
  <p>But as soon as I change to</p>
  <pre><code>&lt;bean id=&quot;messageSource&quot;
          class=&quot;org.springframework.context.support.ResourceBundleMessageSource&quot;&gt;
          &lt;property name=&quot;basename&quot; value=&quot;/resources/locale/messages&quot; /&gt;
          &lt;property name=&quot;defaultEncoding&quot; value=&quot;UTF-8&quot;/&gt;
  &lt;/bean&gt;
  </code></pre>
  <p>The application breaks with the exception :</p>
  <blockquote>
  <p>12:35:57,433 ERROR
  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/SpringJAXWS].[jsp]]
  (http-localhost-127.0.0.1-8080-1) Servlet.service() for servlet jsp
  threw exception: org.apache.tiles.util.TilesIOException: JSPException
  including path '/jsp/views/layout/top.jsp'.   at
  org.apache.tiles.servlet.context.ServletUtil.wrapServletException(ServletUtil.java:241)
  [tiles-servlet-2.2.2.jar:2.2.2]   at
  org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:105)
  [tiles-jsp-2.2.2.jar:2.2.2]</p>
  </blockquote>
  <p>HELP !</p>
  <h2>The Entire project code is available at GITHUB</h2>
  <p><a href="https://github.com/localghost8080/JaxWS" rel="noreferrer">https://github.com/localghost8080/JaxWS</a></p>
  <h1>Here is the entire stack trace for all who are interested.</h1>
  <p><a href="https://github.com/localghost8080/JaxWS/blob/master/ResourceBundleException.txt" rel="noreferrer">https://github.com/localghost8080/JaxWS/blob/master/ResourceBundleException.txt</a></p>