title: How to load config.properties file in a Seam Application using web.xml context-param
body: <p>I have a seam web application in which I have to include a security module for integrated authentication.
  I can see that the module isn't based on seam application because it uses a spring-like notation. 
  As the module works defining a listener and a properties file in the web.xml I think it should also work in my app.</p>
  
  <p>Problems are: 
  I don't have access to the module's sourcecode.
  And it fails to load the config.properties file.</p>
  
  <p>The module hopes to load the file through the following configuration. So I place the config.properties at the same path directory as the web.xml.</p>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;context-param&gt;
      &lt;param-name&gt;securityLocation&lt;/param-name&gt;
      &lt;param-value&gt;config.properties&lt;/param-value&gt;
  &lt;/context-param&gt;
  </code></pre>
  
  <p>I can only assume that at some point some method like getResourceAsStream can't find the file.</p>
  
  <p>I'm using SEAM 2.2.2 and jboss 5 EAP,
  I wonder when/how the jboss container solve this context-param at web.xml
  and where it assumes the file may be.</p>
  
  <p>Sorry for the poor english.</p>