title: Maven vaadin war can't find a properties file when deployed
body: <p>I've a Vaadin application which has a few configuration properties in <code>./src/main/resources/VAADIN/myfile.properties</code>. I debug this application on a jetty while developing and test the d-version on a tomcat server via the maven tomcat plugin. </p>
  
  <pre><code>&lt;groupId&gt;org.apache.tomcat.maven&lt;/groupId&gt;
  &lt;artifactId&gt;tomcat7-maven-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.2&lt;/version&gt;
  </code></pre>
  
  <p>Goals:</p>
  
  <ul>
  <li>While developing: <code>jetty:run</code></li>
  <li>D-version: <code>tomcat7:run</code></li>
  </ul>
  
  <p>This works great. </p>
  
  <p>The problem ist, that the app won't run if I package the whole thing via the <code>package</code> goal and deploy the resulting war to the q-system (also a Tomcat 7). I open up the deployed application and it immediately throws an MissingResourceException coming from the line where the above mentioned properties file is needed for the first time.</p>
  
  <hr>
  
  <p>Additional information:</p>
  
  <ul>
  <li>I've also tried to do a manual export out of Eclipse - same results</li>
  <li><p>The resources are correctly placed beneath "classes"</p>
  
  <p>This screenshot shows the content of <code>./WEB-INF/classes/VAADIN/</code> <em>of the war-file</em>:</p>
  
  <p><a href="https://i.stack.imgur.com/BnCuu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BnCuu.png" alt="content of the war file"></a></p>
  
  <p>The Login_application.properties is the mentioned file. </p></li>
  <li><p>The line throwing the exception looks like this:</p>
  
  <p><code>final ResourceBundle aR = ResourceBundle.getBundle("VAADIN.Login_Application", loc, cl);</code></p></li>
  <li><p>Also desperately tried: </p>
  
  <p><code>final ResourceBundle aR = ResourceBundle.getBundle("VAADIN.Login_Application");</code></p>
  
  <p>with the same results of course.</p></li>
  </ul>
  
  <p><em>Many thanks :)</em> </p>