Faces context not found. getResponseWriter will fail.

View: New views
1 Messages — Rating Filter:   Alert me  

Faces context not found. getResponseWriter will fail.

by Ondra Vodáček :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
I am still getting this error and don't know how get it working.

url in browser: http://localhost:8080/App/faces/
error: org.apache.jasper.JasperException: Exception in JSP: /index.jsp:12

index.jsp:
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
        <jsp:directive.include file="WEB-INF/jspf/header.jspf" />
        <body>
                <f:view>
                        <h:form>
                                <jsp:directive.include file="WEB-INF/jspf/top.jspf" />
                                <jsp:directive.include file="WEB-INF/jspf/menu.jspf" />
                        </h:form>
...

and form the web.xml:
<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>
</servlet-mapping>

deploying to tomcat 5.5

Thanks for any help.