title: IBM websphere application server is giving me a null value from getinitparameter() and I cant figure out why
body: <p>I have been tasked at work with fixing some other teams deployment into IBM Websphere</p>
  <p>They use javax servletcontext to get values out of web.xml</p>
  <p>I have read so many articles</p>
  <p>sc is ServletContext passed in as a parameter</p>
  <p>( I'm new to IBM websphere )</p>
  <pre><code>     Enumeration&lt;String&gt; testParam = sc.getInitParameterNames();
  
      while(testParam.hasMoreElements()) {
  
  
          String value = testParam.nextElement();
          sc.getInitParameter(value);
          
          
      }
  </code></pre>
  <p>but I can do anything to web.xml and it sees no changes</p>
  <p>I have tried adding</p>
  <pre><code> &lt;Context-param&gt;
  </code></pre>
  <p>and i have tried adding</p>
  <pre><code> &lt;init-param&gt;
  </code></pre>
  <p>and then searching by that param name directly which returns a null</p>
  <p>also I have queried all the params using the pasted code example and it shows none of my test params</p>
  <p>yet
  also it has found a param by the name of &quot;WELD_CONTEXT_ID_KEY&quot; which translates to the value of the war but I used</p>
  <p>Findstr /s /i &quot;WELD_CONTEXT_ID_KEY&quot; <em>.</em></p>
  <p>at the server root and that string only exists in the log from the code I created</p>
  <p>I Have no idea what to do because I cant seem to affect change and I cant find that param name</p>
  <p>PLEASE HELP***</p>