Hi all, I'm trying to config my first Java Server Faces project with GAE. I have already configured my Eclipse following instructions published at https://sites.google.com/a/wildstartech.com/adventures-in-java/Java-Platform-Enterprise-Edition/JavaServer-Faces/sun-javaserver-faces-reference-implementation/configuring-jsf-20-to-run-on-the-google-appengine, and also included the fix on the jsf-impl-gae.jar. I'm able to run my project in Eclipse without errors. The console displays "INFO: The server is running at http://localhost:8888/". It looks everything is OK. But when I direct the browser to the above mentioned URL, I get a HTTP 404 error "/welcome.jsf not found" I'm able to put a breakpoint in the index.jsp page at "<% response.sendRedirect("welcome.jsf"); %>" It confirms me the app is working because the breakpoint is reached, but it looks like the server is unable to "understand" the "welcome.xhtml" file should be processed as "welcome.jsf". Similarly by pointing the browser to http://localhost:8888/welcome.xhtml also returns a 404 error. What is wrong with my configuration?
Any hint is welcomed. Thanks in advance Sammy Follows the appengine-web.xml and web.xml files from my war/WEB-INF folder which are copies of the reccommended files published in the above mentioned site: --- appengine-web.xml ------------------------------------------------------------------------ <?xml version="1.0" encoding="utf-8"?> <appengine-web-app xmlns="http://appengine.google.com/ns/1.0"> <application>TestJSF</application> <version>1</version> <sessions-enabled>true</sessions-enabled> <!-- Configure java.util.logging --> <system-properties> <property name="java.util.logging.config.file" value="WEB-INF/ logging.properties"/> </system-properties> </appengine-web-app> --- 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> 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> <!-- ***** GAE 1.3.0 appears to handle 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> <!-- GAE Bug 1506 JSP 2.1 API but 2.0 Implementation --> <context-param> <param-name>com.sun.faces.expressionFactory</param-name> <param-value>com.sun.el.ExpressionFactoryImpl</param-value> </context-param> <context-param> <description> Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. </description> <param-name>com.sun.faces.validateXml</param-name> <param-value>true</param-value> </context-param> <!-- ***** Accommodate Single-Threaded Requirement of Google AppEngine --> <context-param> <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> <param-name>com.sun.faces.enableThreading</param-name> <param-value>false</param-value> </context-param> <!-- 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> <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> -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
