title: Struts 1: where to place properties file for message-resources
body: <p>I am getting a NullPointerError from struts, and the corresponding stack trace is the following:</p>
  
  <pre><code>PropertyMessa W org.apache.struts.util.PropertyMessageResources loadLocale   Resource org/apache/struts/action/ActionResources_en_US.properties Not Found.
  PropertyMessa W org.apache.struts.util.PropertyMessageResources loadLocale   Resource org/apache/struts/action/ActionResources_en.properties Not Found.
  RequestUtils  E org.apache.struts.util.RequestUtils createActionForm Error creating form bean of class com.teig.territorymaint.web.TerritoryForm
  at org.apache.struts.config.FormBeanConfig.createActionForm(FormBeanConfig.java:289)
  at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:254)
  at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:208)
  at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:319)
  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:192)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
  </code></pre>
  
  <p>I don't understand why Struts is trying to fetch the properties file from the apache struts package path, and I suspected that my struts configuration is wrong:</p>
  
  <pre><code>&lt;message-resources parameter="ApplicationResources" null="false" /&gt;
  </code></pre>
  
  <p>Then, I modified the message resources tag, and I got the same error:</p>
  
  <pre><code>&lt;message-resources parameter="myPackagePath.ApplicationResources" null="false" /&gt;
  </code></pre>
  
  <p>What am I doing wrong? Thanks in advance.</p>