DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26317>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26317 struts-faces example2 - 2004-01-13 build [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WORKSFORME | ------- Additional Comments From [EMAIL PROTECTED] 2004-01-29 18:46 ------- I followed the comments on this note. I downloaded the nightly build from January 28. Using JSTL 1.1, JSF beta and Tomcat 5.0.16 I got the example2 to work but not my own initial page, which is login.jsp. I am attaching it, so you can see how simple it is. I am still facing the same error, the NullPointer exception, but now the error happens in a different place. I enabled debugging mode, and this time it fails I believe, due to instantiating the jsf-impl.jar class com.sun.faces.application.ViewHandlerImpl instead of the struts-faces.jar class org.apache.struts.faces.application.ViewHandlerImpl There are two classes with the same name in two different packages. I wonder if I HAVE to HAVE an initial welcome page to do a forward to the real initial page of my application. What I had used to work with EA4, now it does not work. Having the welcome page be a Faces pages does not seem to work as it used to work with the ea4 release. So this might be an issue with the jsf .jar files; or maybe I have to change my initial page. Looking at the messages, the class ViewHandlerImpl is from jsf-impl.jar and not from struts-faces.jar My web.xml file has <!-- Faces Servlet Mapping --> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>/faces/*</url-pattern> </servlet-mapping> <!-- Action Servlet Mapping --> <servlet-mapping> <servlet-name>action</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>login.jsp</welcome-file> </welcome-file-list> My login.jsp page is: -------------------- BEGIN OF login.jsp ------------------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html; charset=utf-8" language="java" errorPage="/error/error.jsp" %> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ taglib prefix="s" uri="http://jakarta.apache.org/struts/tags-faces"%> <f:view> <s:html locale="true"> <head> <title>Hola</title> </head> <body> <!-- Log in --> <s:form action="/listProjectTasks.do" method="POST" > <p> hi </s:form> </body> </s:html> </f:view> --------------------------- END OF login.jsp ----------------------------- The stack trace is: (the ViewHandlerImpl class that got loaded is from jsf-impl.jar (not from struts-faces.jar) [DEBUG] LifecycleImpl - -Begin executing lifecycle phases [DEBUG] RestoreViewPhase - -Entering RestoreViewPhase [DEBUG] ViewHandlerImpl - -URL pattern of the FacesServlet executing the current request /faces [DEBUG] StateManagerImpl - -Restoring view from session for viewId /login.jsp [DEBUG] RestoreViewPhase - -New request: creating a view for /login.jsp [DEBUG] ViewHandlerImpl - -Created new view for /login.jsp [DEBUG] ViewHandlerImpl - -Locale for this view as determined by calculateLocale en_US [DEBUG] RestoreViewPhase - -Exiting RestoreViewPhase [DEBUG] LifecycleImpl - -Skipping to RenderResponsePhase [DEBUG] RenderResponsePhase - -Entering RenderResponsePhase [DEBUG] RenderResponsePhase - -About to render view /login.jsp [DEBUG] ViewHandlerImpl - -About to render view /login.jsp [DEBUG] ViewHandlerImpl - -URL pattern of the FacesServlet executing the current request /faces [DEBUG] ViewHandlerImpl - -Found no URL patterns mapping to FacesServlet [DEBUG] ApplicationDispatcher - -servletPath=/login.jsp, pathInfo=null, queryString=null, name=null [DEBUG] ApplicationDispatcher - - Path Based Forward [DEBUG] JspServlet - -JspEngine --> /login.jsp [DEBUG] JspServlet - - ServletPath: /login.jsp [DEBUG] JspServlet - - PathInfo: null [DEBUG] JspServlet - - RealPath: C:\dev\wless\src\web\login.jsp [DEBUG] JspServlet - - RequestURI: /wless/login.jsp [DEBUG] JspServlet - - QueryString: null [DEBUG] JspServlet - - Request Params: [DEBUG] ApplicationDispatcher - -servletPath=/error/error.jsp, pathInfo=null, queryString=null, name=null [DEBUG] ApplicationDispatcher - - Path Based Forward [DEBUG] JspServlet - -JspEngine --> /error/error.jsp [DEBUG] JspServlet - - ServletPath: /error/error.jsp [DEBUG] JspServlet - - PathInfo: null [DEBUG] JspServlet - - RealPath: C:\dev\wless\src\web\error\error.jsp [DEBUG] JspServlet - - RequestURI: /wless/error/error.jsp [DEBUG] JspServlet - - QueryString: null [DEBUG] JspServlet - - Request Params: [DEBUG] ApplicationDispatcher - - Disabling the response for futher output [DEBUG] ApplicationDispatcher - - Disabling the response for futher output [DEBUG] RenderResponsePhase - -Exiting RenderResponsePhase ----------- Please advise. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]