JSF e GAE - Problemas nas TAGLIBS

0 respostas
R

Galera, meu problema é o seguinte, segui esses dois tutoriais:

http://java.wildstartech.com/Java-Platform-Enterprise-Edition/JavaServer-Faces/javaserver-faces-20/configuring-javaserver-faces-20-to-run-on-the-google-appengine
https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/contexts-and-dependency-injection-jsr-299/configuring-jboss-weld-to-run-with-javaserver-faces-on-google-app-engine

Meu servidor rodou sem nenhum erro, porém minha página web, fica totalmente em branco quando utilizo as tags do JSF.

WEB.xml

<?xml version="1.0" encoding="utf-8"?>

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

    <!-- JBoss Weld 1.0.1 Compatibility -->
    <listener>
       <listener-class>org.jboss.weld.environment.servlet.Listener</listener-class>
    </listener>

   <display-name>
    Wildstar Technologies, LLC. Google AppEngine JSF 2.0 Template
   </display-name>

   <description>
    Template JSF 2.0 application configured to run on the Google
    AppEngine for Java.
   </description>

   <!-- ***** Designate server-side state saving. *****  -->
   <context-param>
      <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
      <param-value>server</param-value>
   </context-param>

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

   </context-param>
   <context-param>  
      <param-name>com.sun.faces.expressionFactory</param-name>  
      <param-value>com.sun.el.ExpressionFactoryImpl</param-value>  
   </context-param>

   <!-- Disable use of threading for single-threaded environments such as the Google AppEngine. -->
   <context-param>
      <param-name>com.sun.faces.enableThreading</param-name>
      <param-value>false</param-value>
      <description>
         When enabled, the runtime initialization and default ResourceHandler 
         implementation will use threads to perform their functions. Set this 
         value to false if threads aren't desired (as in the case of running 
         within the Google Application Engine).
         Note that when this option is disabled, the ResourceHandler will not 
         pick up new versions of resources when ProjectStage is development.
      </description>

   </context-param>
   
   <!-- ***** Load the JavaServer Faces Servlet ***** -->
   <servlet>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <load-on-startup>1</load-on-startup>
   </servlet>

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

   <!-- ***** Specify session timeout of thirty (30) minutes. ***** -->
   <session-config>
      <session-timeout>30</session-timeout>
   </session-config>

   <welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
      <welcome-file>index.xhtml</welcome-file>
      <welcome-file>index.html</welcome-file>
   </welcome-file-list>

</web-app>

XHTML

<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ui="http://java.sun.com/jsf/facelets">
   <h:head id="head">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>Welcome to JSF 2.0 on the Google AppEngine!</title>
   </h:head>
   <h:body id="body">
   	<h:form> 
   	  <p>Aqui funciona ... </p>	
      <f:view contentType="text/html">
         <p><h:outputText value="You are now up and running with JavaServer Faces 2.0 on the Google App Engine."/></p>
      </f:view>
	</h:form> 
   </h:body>

</html>

A tela fica toda em branco.
Apenas o título: Welcome to JSF 2.0 on the Google AppEngine!
E a mensagem: Aqui funciona … que inserir fora das tags jsf.
Segue imagem em anexo.

Alguém sabe qual seria o problema ou a solução.

ATT

Criado 31 de março de 2012
Respostas 0
Participantes 1