You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Ondra Vodáček <on...@email.cz> on 2009/06/25 12:05:12 UTC
Faces context not found. getResponseWriter will fail.
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.