0 Replies Latest reply on Oct 23, 2007 12:27 PM by Yury Vetlugin

    jsf pages are not processed

    Yury Vetlugin Newbie

      Hi everybody, I have a problem with rendering JSF pages. I have installed everything fine (all the libraries needed by seam, jboss 4.2 and so on - JSF and EJB3 works if seam not initialized in web.xml).

      But when I`m trying to get some JSF page, browser suggest me to download JSF source file (instead of rendering). So, do anybody know what`s wrong?

      Here`s my web.xml ------------------------

      <?xml version="1.0" encoding="UTF-8"?>
      <web-app version="2.5"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

      <display-name>bestmemory</display-name>
      <!-- Seam -->


      <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>



      <servlet-name>Seam Resource Servlet</servlet-name>
      <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>


      <servlet-mapping>
      <servlet-name>Seam Resource Servlet</servlet-name>
      <url-pattern>/seam/resource/*</url-pattern>
      </servlet-mapping>


      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>


      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.seam</url-pattern>
      </servlet-mapping>


      <filter-name>Seam Filter</filter-name>
      <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>


      <filter-mapping>
      <filter-name>Seam Filter</filter-name>
      <url-pattern>/*</url-pattern>
      </filter-mapping>

      <context-param>
      <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
      <param-value>.xhtml</param-value>
      </context-param>

      <context-param>
      <param-name>facelets.DEVELOPMENT</param-name>
      <param-value>false</param-value>
      </context-param>

      <session-config>
      <session-timeout>10</session-timeout>
      </session-config>
      </web-app>


      And here is my faces-config.xml ------------------------

      <?xml version="1.0" encoding="UTF-8"?>
      <faces-config version="1.2"
      xmlns="http://java.sun.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">


      <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>

      </faces-config>


      Any help appriciated 8).