Hi Rudy, thank you so much for your tidying feedback; it did it.
Best Regards & thank you alot!! 2011/3/28 Rudy De Busscher <[email protected]> > Forgot to mention sometime, > > you have specified the h: namespace twice in index.jsf(xhtml) so remove one > to get rid of the error. > > Rudy > > On 28 March 2011 09:20, Rudy De Busscher <[email protected]> wrote: > > > Hi, > > > > You get some sort of infinitive loop. You have defined *.jsf as servlet > > mapping for jsf, but also the index.jsf has the same extension. So > trying > > to load index.jsf, MyFaces loads the index.jsf file but that is captured > by > > the servlet again. See the very long stacktrace in your log and the > > 'looping' in it. > > > > Solution: > > 1) Change the index.jsf file to index.xhtml > > 2) Add the following parameter to web.xml > > <context-param> > > <param-name>javax.faces.DEFAULT_SUFFIX</param-name> > > <param-value>.xhtml</param-value> > > </context-param> > > > > And that should do it. > > > > Other remarks: > > You are using a faces-config for JSF 1.1. You should use the 2.0 > > declaration to have access to all features of JSF 2 > > <faces-config 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_2_0.xsd" > > version="2.0"> > > > > Also, you use the web-app 2.3 version and in fact it is a 2.5 one. > > > > Regards > > Rudy > > > > > > > > On 27 March 2011 16:17, F P <[email protected]> wrote: > > > >> Hi Com, > >> > >> starting my deployed App causes the following Exception (localhost.log): > >> > >> 27.03.2011 14:30:36 org.apache.catalina.core.StandardWrapperValve invoke > >> SCHWERWIEGEND: Servlet.service() for servlet [Faces Servlet] in context > >> with > >> path [/RPGPortal] threw exception > >> java.lang.NullPointerException > >> at javax.faces.component.UIViewRoot.getViewMap(UIViewRoot.java:689) > >> at javax.faces.component.UIViewRoot.getViewMap(UIViewRoot.java:677) > >> at > >> > >> > org.apache.myfaces.renderkit.ErrorPageWriter._writeVariables(ErrorPageWriter.java:580) > >> at > >> > >> > org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:290) > >> at > >> > >> > org.apache.myfaces.renderkit.ErrorPageWriter.debugHtml(ErrorPageWriter.java:252) > >> at > >> > >> > org.apache.myfaces.renderkit.ErrorPageWriter.handleThrowable(ErrorPageWriter.java:423) > >> at > >> > org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:274) > >> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191) > >> at > >> > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304) > >> > >> [...] > >> > >> My Environment: > >> > >> Eclipse 3.6 > >> Maven3 m2eclipse plugin > >> Tomcat 7.0.11 > >> > >> > >> My Maven Dependencies (Standard Scope - compile): > >> > >> Richfaces core 4.0 api&impl > >> richfaces.ui components 4.0 > >> richfaces cdk annotations 4.0.0 > >> javax.servlet 2.5 (provided) > >> javax.servlet.jsp jsp-api 2.1 (provided) > >> javax.servlet jstl 1.2 > >> javax.el el-api 2.2.1-b01 type pom (provided) > >> org.apache.myfaces.core myfaces-api 2.0.4 > >> org.apache.myfaces.core myfaces-impl 2.0.4 > >> > >> web.xml: > >> <?xml version="1.0"?> > >> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application > >> 2.3//EN" > >> "http://java.sun.com/dtd/web-app_2_3.dtd"> > >> <web-app> > >> <display-name>RPGPortal</display-name> > >> > >> <welcome-file-list> > >> <welcome-file>index.jsf</welcome-file> > >> </welcome-file-list> > >> > >> <context-param> > >> <param-name>javax.faces.FACELETS_SKIP_COMMENTS</param-name> > >> <param-value>true</param-value> > >> </context-param> > >> <context-param> > >> <param-name>javax.faces.PROJECT_STAGE</param-name> > >> <param-value>Development</param-value> > >> </context-param> > >> <context-param> > >> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> > >> <param-value>server</param-value> > >> </context-param> > >> <context-param> > >> <param-name>org.richfaces.CONTROL_SKINNING</param-name> > >> <param-value>enable</param-value> > >> </context-param> > >> <context-param> > >> <param-name>org.richfaces.SKIN</param-name> > >> <param-value>blueSky</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> > >> <!-- Faces Servlet Mapping --> > >> <servlet-mapping> > >> <servlet-name>Faces Servlet</servlet-name> > >> <url-pattern>*.jsf</url-pattern> > >> </servlet-mapping> > >> </web-app> > >> > >> faces-config.xml: > >> <?xml version="1.0"?> > >> <!DOCTYPE faces-config PUBLIC > >> "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" > >> "http://java.sun.com/dtd/web-facesconfig_1_1.dtd"> > >> > >> <faces-config> > >> > >> </faces-config> > >> > >> > >> index.jsf: > >> > >> <html xmlns:h="http://java.sun.com/jsf/html" > >> xmlns:ui="http://java.sun.com/jsf/facelets" > >> xmlns:h="http://java.sun.com/jsf/html" > >> xmlns:f="http://java.sun.com/jsf/core" > >> xmlns:a4j="http://richfaces.org/a4j" > >> xmlns:rich="http://richfaces.org/rich"> > >> <head> > >> <title>HelloWorldJSF</title> > >> </head> > >> <body> > >> <f:view> > >> <h:form> > >> <h3> > >> <h:outputText value="hello world" /> > >> </h3> > >> </h:form> > >> </f:view> > >> </body> > >> </html> > >> > >> > >> Do you have any ideas? > >> Every hint is much appreciated. > >> > >> Best Regards! > >> > > > > >

