Note that there are some explanatory texts on larger screens.

plurals
  1. POJSF and XHTML files - browser receives full source code, with jsf elements not processed by glassfish
    primarykey
    data
    text
    <p>Ok, so the problem is - I've created a new EJB project in netbeans. I've created a new .xhtml file in web application that I've mapped in web.xml as the project's welcome-file. </p> <p>Content of <code>index.xhtml</code>:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"&gt; &lt;h:head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt; &lt;title&gt;TODO supply a title&lt;/title&gt; &lt;/h:head&gt; &lt;h:body&gt; &lt;p&gt;test1&lt;/p&gt; &lt;h:outputText value="test2"/&gt; &lt;/h:body&gt; &lt;/html&gt; </code></pre> <p>So I run the project. A new page in my browser (Firefox 18) opens, and all I see is... Nothing else except 'test1'. So I right-click on the page, 'see page source', and I see exactly what has been written in the index.xhtml. It's like glassfish throws the page back at me explicitly as I've written it.</p> <p>There are no errors thrown in glassfish logs. All clear there.</p> <p>contents of <code>web.xml</code> look like this:</p> <pre><code>&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;*.xhtml&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; &lt;welcome-file-list&gt; &lt;welcome-file&gt;/index.xhtml&lt;/welcome-file&gt; &lt;/welcome-file-list&gt; &lt;session-config&gt; &lt;session-timeout&gt; 30 &lt;/session-timeout&gt; &lt;/session-config&gt; </code></pre> <p>So, please, could anybody tell me, what I'm doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload