The url I'm returning from my Spring controller is: /WEB-INF/jsp/welcome.faces
Does it have something to do with the JSP being behind inside the WEB-INF? Mike Kienenberger wrote: > > The web.xml file you posted below looks correct. I'd say it was a > classpath issue but you previously posted that the generated html is > pointing to the correct resources. > > Also, are you accessing your pages via a url ending .faces? Don't > access the url using .jsp. > > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> I've redone the web.xml and copied from >> http://myfaces.apache.org/tomahawk/extensionsFilter.html >> verbatim, but I still get the "java.lang.IllegalStateException: >> ExtensionsFilter not correctly configured." exception. Here is my new >> web.xml: >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> <!-- This is where Servlets are configured and mapped. --> >> >> <web-app id="WebApp_ID" 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"> >> <filter> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> >> <init-param> >> <description>Set the size limit for uploaded files. >> Format: 10 - 10 bytes >> 10k - 10 KB >> 10m - 10 MB >> 1g - 1 GB >> </description> >> <param-name>maxFileSize</param-name> >> <param-value>20m</param-value> >> </init-param> >> </filter> >> >> <!-- extension mapping for adding <script/>, <link/>, and other >> resource >> tags to JSF-pages --> >> <filter-mapping> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> <!-- servlet-name must match the name of your >> javax.faces.webapp.FacesServlet entry --> >> <servlet-name>Faces Servlet</servlet-name> >> </filter-mapping> >> >> <!-- extension mapping for serving page-independent resources >> (javascript, >> stylesheets, images, etc.) --> >> <filter-mapping> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> >> </filter-mapping> >> >> <listener> >> >> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> >> </listener> >> >> <listener> >> >> <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class> >> </listener> >> >> <servlet> >> <servlet-name>WebCore</servlet-name> >> >> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> >> <load-on-startup>1</load-on-startup> >> </servlet> >> >> <servlet-mapping> >> <servlet-name>WebCore</servlet-name> >> <url-pattern>*.html</url-pattern> >> </servlet-mapping> >> >> <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> >> </web-app> >> >> Thanks for your time! >> >> >> Mike Kienenberger wrote: >> > >> > It's not set up correctly. >> > >> > The first filter mapping must point to the same thing as your faces >> > servlet. >> > The second filter mapping must point to a specific url: >> > /faces/myFacesExtensionResource/* >> > >> > You can find the detailed directions for setting it up here. >> > >> > http://myfaces.apache.org/tomahawk/extensionsFilter.html >> > >> > >> > On 6/15/07, weull <[EMAIL PROTECTED]> wrote: >> >> >> >> Changing the filter to map to *.faces give me this: >> >> >> >> <?xml version="1.0" encoding="UTF-8"?> >> >> >> >> <!-- This is where Servlets are configured and mapped. --> >> >> >> >> <web-app id="WebApp_ID" 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"> >> >> >> >> <display-name>com.p21csi.webcore.base</display-name> >> >> >> >> <filter> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> >> >> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> >> >> >> >> <init-param> >> >> <description>Set the size limit for uploaded files. >> >> Format: 10 - 10 bytes >> >> 10k - 10 KB >> >> 10m - 10 MB >> >> 1g - 1 GB >> >> </description> >> >> <param-name>maxFileSize</param-name> >> >> <param-value>20m</param-value> >> >> >> >> </init-param> >> >> </filter> >> >> >> >> <!-- extension mapping for adding <script/>, <link/>, and >> other >> >> resource >> >> tags to JSF-pages --> >> >> <filter-mapping> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> <!-- servlet-name must match the name of your >> >> javax.faces.webapp.FacesServlet entry --> >> >> <url-pattern>*.faces</url-pattern> >> >> </filter-mapping> >> >> >> >> <!-- extension mapping for serving page-independent resources >> >> (javascript, >> >> stylesheets, images, etc.) --> >> >> <filter-mapping> >> >> <filter-name>MyFacesExtensionsFilter</filter-name> >> >> >> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> >> >> </filter-mapping> >> >> >> >> >> >> >> >> <listener> >> >> >> >> >> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> >> >> </listener> >> >> <listener> >> >> >> >> >> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> >> >> </listener> >> >> <listener> >> >> >> >> >> <listener-class>de.mindmatters.faces.spring.context.ContextLoaderListener</listener-class> >> >> </listener> >> >> <servlet> >> >> <servlet-name>WebCore</servlet-name> >> >> >> >> >> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> >> >> <load-on-startup>1</load-on-startup> >> >> </servlet> >> >> >> >> <servlet-mapping> >> >> <servlet-name>WebCore</servlet-name> >> >> <url-pattern>*.html</url-pattern> >> >> </servlet-mapping> >> >> >> >> <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> >> >> </web-app> >> >> >> >> Which unfortunately throws the same "ExtensionsFilter not configured >> >> correctly" exception. >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11138912 >> >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11142511 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11144083 Sent from the MyFaces - Users mailing list archive at Nabble.com.

