title: MissingResourceException: Can't find bundle for base name
body: <p>I know that there are a lot of questions and answers exactly about this error on stackoverflow and other forums. But I still can not find the solution...</p>
  
  <p><strong><em>My code:</em></strong></p>
  
  <pre><code>package com.sodifrance.apex.presentation.generic.utils;
  
  import java.util.ResourceBundle;
  
  public class EnumTranslator {
  
      private static EnumTranslator instance = null;
  
      private EnumTranslator() {
      }
  
      public static EnumTranslator getDefaut() {
          if (instance == null)
          {
              instance = new EnumTranslator();
          }
          return instance;
      }
  
      public String translate(Enum&lt;?&gt; enumerationValue) {
          String localizedMessage = "";
  
          if (enumerationValue != null)
          {
              ResourceBundle b = ResourceBundle.getBundle("resources.enumerations");
  
              localizedMessage = enumerationValue.name();
  
              if (b != null)
              {
                  localizedMessage = b.getString(enumerationValue.getDeclaringClass().getName() + "." + enumerationValue.name());
              }
          }
  
          return localizedMessage;
      }
  }
  </code></pre>
  
  <p><strong><em>Tomcat Console:</em></strong></p>
  
  <blockquote>
    <p>java.util.MissingResourceException: Can't find bundle for base name
    resources.enumerations, locale fr_FR  at
    java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
      at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
      at java.util.ResourceBundle.getBundle(ResourceBundle.java:773)  at
    com.presentation.generic.utils.EnumTranslator.translate(EnumTranslator.java:25)
      at
    com.presentation.entry.societe.EntryChoixTypeSocieteAction.execute(EntryChoixTypeSocieteAction.java:53)
      at
    com.presentation.generic.back.BackRequestProcessor.processActionPerform(BackRequestProcessor.java:118)
      at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
      at
    com.presentation.generic.back.BackRequestProcessor.process(BackRequestProcessor.java:63)
      at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
      at
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)     at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:729)  at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    com.presentation.generic.security.EncodingFilter.doFilter(EncodingFilter.java:121)
      at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    com.presentation.generic.security.ApplicationFilter.doFilter(ApplicationFilter.java:72)
      at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
      at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
      at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
      at
    org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
      at
    org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
      at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
      at
    org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:521)
      at
    org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1096)
      at
    org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:674)
      at
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
      at
    org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
      at
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at
    org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
      at java.lang.Thread.run(Thread.java:745)</p>
  </blockquote>
  
  <p>when i inspect this line in debbug mode:</p>
  
  <pre><code>ResourceBundle b = ResourceBundle.getBundle("resources.enumerations");
  </code></pre>
  
  <p>I have this message:</p>
  
  <blockquote>
    <p>The method getBundle(String) is undefined for the type Enum Translator</p>
  </blockquote>
  
  <p><strong><em>My file config:</em></strong>
  <a href="https://i.stack.imgur.com/iPMWE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iPMWE.png" alt="enter image description here"></a></p>