title: Running JSF gives me download file box
body: <p>I am running JSF Project on jboss Server 5.0, When it is deployed the browser gives me download file message instead of showing the xhtml Content</p>
  
  <p>here my web.xml :</p>
  
  <pre><code>    &lt;welcome-file-list&gt;
      &lt;welcome-file&gt;index.xhtml&lt;/welcome-file&gt;
    &lt;/welcome-file-list&gt;
       &lt;servlet&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt;
          &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
        &lt;/servlet&gt;
        &lt;servlet-mapping&gt;
          &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/faces/*&lt;/url-pattern&gt;
        &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>index.xhtml:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:ui="http://java.sun.com/jsf/facelets"&gt; 
  
  &lt;h:head&gt;&lt;/h:head&gt; 
  &lt;body&gt; 
  &lt;h1&gt; Test&lt;/h1&gt;
  &lt;h:form&gt;
  &lt;h:inputText value="test"  /&gt;
  &lt;/h:form&gt;
  &lt;/body&gt; 
  &lt;/html&gt;
  </code></pre>