Well, my file extensions are .jsp not
.jsf.
Or have I done something wrong?(Come to think about
it, I really don't stand that just yet, I need to google
this.)
Thanks,
--Todd
From: David G. Friedman
[mailto:[EMAIL PROTECTED] Sent: Thursday, May 04, 2006 5:30
PMTo: MyFaces DiscussionSubject: RE: I just don't
understand why filters doesn't work...
Todd,
Why
did you remove these two recommendedmappings:
servlet-mapping
servlet-nameFaces
Servlet/servlet-name
url-pattern*.jsf/url-panner
/servlet-mapping
And:
filter-mapping
filter-nameextensionsFilter/filter-name
url-pattern*.jsf/url-pattern/filter-mapping
Regards,
David
-Original Message-From: Todd Patrick
[mailto:[EMAIL PROTECTED]Sent: Thursday, May 04, 2006 6:19
PMTo: MyFaces DiscussionSubject: I just don't understand
why filters doesn't work...
This can't be
hard... I've wasted close to *four* hours on this. I've been fortunate that
I've had some really great people help me. However, I still can't get
past the following error:
javax.servlet.ServletException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered.
Set-up:
App Server: Sun
Java System Application Server PE 8
Libraries:
myfaces-api-1.1.2.jar, myfaces-impl-1.1.2.jar, tomahawk.jar and
tomahawk-1.1.3-SNAPSHOT.jar
Here is my web.xml
file:
?xml
version="1.0" encoding="UTF-8"?web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
context-param
param-namecom.sun.faces.verifyObjects/param-name
param-valuetrue/param-value
/context-param
context-param
param-namecom.sun.faces.validateXml/param-name
param-valuetrue/param-value
/context-param
context-param
param-namejavax.faces.CONFIG_FILES/param-name
param-value/WEB-INF/faces-config.xml/param-value
/context-param
context-param
param-namejavax.faces.STATE_SAVING_METHOD/param-name
param-valueclient/param-value
/context-param
context-param
param-nameorg.apache.myfaces.CHECK_EXTENSIONS_FILTER/param-name
param-valuetrue/param-value
/context-param
servlet
servlet-nameFaces
Servlet/servlet-name
servlet-classjavax.faces.webapp.FacesServlet/servlet-class
load-on-startup1/load-on-startup
/servlet
servlet-mapping
servlet-nameFaces
Servlet/servlet-name
url-pattern/faces/*/url-pattern
/servlet-mapping
filter
filter-nameMyFacesExtensionsFilter/filter-name
filter-classorg.apache.myfaces.webapp.filter.ExtensionsFilter/filter-class
init-param
param-namemaxFileSize/param-name
param-value20m/param-value
/init-param
/filter
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
servlet-nameFaces Servlet/servlet-name
/filter-mapping
filter-mapping
filter-nameMyFacesExtensionsFilter/filter-name
url-pattern/faces/myFacesExtensionResource/*/url-pattern
/filter-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-file
index.jsp
/welcome-file
/welcome-file-list/web-app
Entire error
message:
javax.servlet.ServletException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.htmljavax.faces.webapp.FacesServlet.service(FacesServlet.java:152)sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)java.lang.reflect.Method.invoke(Method.java:585)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)java.security.AccessController.doPrivileged(Native
Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)java.security.AccessController.doPrivileged(Native
Method)java.security.AccessController.doPrivileged(Native
Method)org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:675)org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:642)org.apache.jsp.index_jsp._jspService(index_jsp.java:118)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)javax.servlet.http.HttpServlet.service(HttpServlet.java:860)s