Ack, I'm sorry, it seems to be a false positive...  On closer inspection, it
seems that none of the css/javascript is being loaded.  Sticking this back
into the web.xml:
     <context-param> 
        <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name> 
        <param-value>true</param-value> 
    </context-param> 

gives me back the ExtensionFilter not correctly configured exception.  I've
done a compare of the jars in my classpath with the ones in the
tomahawk-examples.war and they're exactly the same.  I'm stumped.  Any other
ideas?  



Mike Kienenberger wrote:
> 
> Great!  I thought it might be a classpath issue.   Glad you got it it
> working.
> 
> On 6/15/07, weull <[EMAIL PROTECTED]> wrote:
>>
>> Awesome!  It's working.  Using the second context-param you gave me
>> showed
>> that I was missing the commons-lang-2.1 jar in my classpath.  I added
>> that
>> jar, and it works like a charm!
>>
>> Thank you so much for your time Mike!
>>
>>
>> Mike Kienenberger wrote:
>> >
>> > One other thing you can try is to disable the extension filter check.
>> >  Perhaps the errors that occur after that will provide more insight.
>> >
>> >     <context-param>
>> >
>> > <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
>> >         <param-value>false</param-value>
>> >     </context-param>
>> >
>> > Here's another one that might help -- I don't remember what this one
>> does
>> >
>> >    <context-param>
>> >        <description>For JSF 1.1</description>
>> >        <param-name>org.apache.myfaces.validate</param-name>
>> >        <param-value>true</param-value>
>> >    </context-param>
>> >
>> >
>> > On 6/15/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
>> >> No, having your jsp files inside WEB-INF should not matter.
>> >>
>> >>
>> >> On 6/15/07, weull <[EMAIL PROTECTED]> wrote:
>> >> >
>> >> > 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.
>> >> >
>> >> >
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Help-With-Tomahawk-and-web.xml-tf3925209.html#a11144854
>> 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#a11145190
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to