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!

Reply via email to