title: Websphere not using welcome-file-list after mapping *.html to a servlet
body: <p>I am using IBM WebSphere (WAS) 7.0.0.19 to host a java-based web-app, and I needed to map the extension *.html to a particular servlet so that I could do some server-side scrubbing of user-supplied HTML files.  (The server reads the file, augments it with some extra information, and serves up the modified content transparently to the person viewing the page.)</p>
  
  <p>Unfortunately, when I did this, welcome-files stopped working.  Previously, if I typed in the URL for a directory, the server would look for index.html and serve up that.  Now, I'm just getting a 403 forbidden rule ("Forbidden - by rule.").  The access logs don't show anything more--they simply state that directory indexing is forbidden by rule for the server, which is correct.  I don't want the webserver to build a table of contents for directories with no index.html, but when there is an index.html, I want it to serve up that file.  </p>
  
  <p>My first thought was that it was trying to serve the index.html through my servlet, the servlet was failing to find the file (because the url lacked "index.html"), and therefore it thought there was no index.html.  However, I put in some debug code and am quite confident that the servlet code is never getting run when I go simply to the directory itself.  </p>
  
  <p>I don't really care whether index.html is served through the servlet or not--in the case of this particular file, the servlet would just spit back the original file anyway.  I just want index.html to be served by something.</p>
  
  <p>Here is the relevant section of my web.xml</p>
  
  <pre><code>&lt;servlet-mapping&gt;
      &lt;servlet-name&gt;PageScrubber&lt;/servlet-name&gt;
      &lt;url-pattern&gt;*.html&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;        
  
  &lt;welcome-file-list&gt;         
      &lt;welcome-file&gt;index.html&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.htm&lt;/welcome-file&gt;
      &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
  &lt;/welcome-file-list&gt;
  </code></pre>
  
  <p>For what it's worth, index.htm and index.jsp were not working before the addition of the servlet mapping.  Only index.html worked before.  However, now none of them work.  </p>
  
  <p>I have used the same web.xml with two Oracle products: WebLogic (WLS) and Oracle Application Server (OAS) with no issues.</p>
  
  <p>I am quite confident that it is just the addition of this scrubber servlet that has caused the problem, because removing that directive caused directory indexing to start working again.</p>
  
  <p>I did find some notes about welcome-file-list not working when using an extended document root, and I tried setting com.ibm.ws.webcontainer.EnablePartialURLtoExtendedDocumentRoot to be true, but that did not seem to change anything.  </p>
  
  <p>I'm pretty much out of ideas.  Does anyone out there have any thoughts as to why it's not finding my index.html?  Thanks in advance!</p>