title: For some reason JSP documents output XML instead of HTML
body: <p>OK, so I am trying to set up a simple JSF application. I'm using NetBeans 6.8, Glassfishv3 and Maven2. I made a JSP document like so:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;html xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"&gt;
  &lt;f:view&gt;
      &lt;head&gt;
          &lt;title&gt;&lt;h:outputText value="#{Welcome.title}"/&gt;&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h:outputText value="Welcome"/&gt;
      &lt;/body&gt;
  &lt;/f:view&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Problem is, if I navigate to this page (<code>http://myHost/myApp/faces/welcome.jspx</code>), it is returned as an XML document, but with the <code>${Welcome.title}</code> value populated:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;html&gt;&lt;head&gt;&lt;title&gt;Gymix - Welcome&lt;/title&gt;&lt;/head&gt;&lt;body&gt;Welcome&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>In Internet Explorer this looks like I would have opened an XML document. In Google Chrome the title is printed next to the text Welcome and instead of the title the URL to the page is printed on the tab.</p>
  
  <p>If I change the JSP document to a plain JSP page (taglibs instead of xmlns and so on) it works and I get a proper page returned. Any ideas on what's wrong? Thanks!</p>
  
  <p>Edit: sadly none of the quick fixes fixed this, so I'll look into this more. BTW, my pom.xml has jsf-api and jsf-impl dependencies with the version for both set to 1.2_14</p>