Martin,

That's no longer true for 2.4, which is xml-schema based:

>From the comments in the url at the top of the file:

        The web-app element is the root of the deployment
        descriptor for a web application.  Note that the sub-elements
        of this element can be in the arbitrary order.

Kurt,

Unfortunately, I don't see anything wrong with your web.xml.   That
doesn't mean there's nothing wrong, only that I don't see it, though
:)

Sorry I can't be of more help.


On 12/1/05, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> On the first glance - you need to keep the sequence of things
> correctly in your web.xml, AFAIK.
>
> That would mean that you should first define all filters and their
> mappings, then servlets and their mappings.
>
> regards,
>
> Martin
>
>
> On 12/1/05, Kurt Edegger <[EMAIL PROTECTED]> wrote:
> > Hi Mike,
> >
> > here's my web.xml. The JSF application is a tool for a program called
> > Sakai, thus the additional servlets and mappings.
> >
> > Thanks....
> >
> > <?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";>
> > <display-name>ECGViewer_standalone</display-name>
> >
> > <!-- Sakai JSF Tool Servlet, for the jsf1 tool -->
> >    <servlet>
> >        <servlet-name>sakai.ecgviewer.tool</servlet-name>
> >        <servlet-class>org.sakaiproject.jsf.util.JsfTool</servlet-class>
> >        <init-param>
> >            <param-name>default</param-name>
> >            <param-value>index</param-value>
> >        </init-param>
> >        <init-param>
> >            <param-name>path</param-name>
> >            <param-value>/</param-value>
> >        </init-param>
> >        <load-on-startup> 1 </load-on-startup>
> >    </servlet>
> >
> >    <servlet>
> >        <servlet-name>Faces Servlet</servlet-name>
> >        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
> >        <load-on-startup>2</load-on-startup>
> >    </servlet>
> >
> >    <listener>
> >        <listener-class>org.sakaiproject.util.ToolListener</listener-class>
> >    </listener>
> >
> > <!-- added to ensure a Context - as recommended by error message -->
> >         <listener>
> >
> > <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
> >         </listener>
> >
> > <!-- Sakai request filter, mapped to anything that goes to the faces
> > servlet -->
> >       <filter>
> >          <filter-name>sakai.request</filter-name>
> >          <filter-class>org.sakaiproject.util.RequestFilter</filter-class>
> >       </filter>
> >
> >       <filter-mapping>
> >           <filter-name>sakai.request</filter-name>
> >           <servlet-name>Faces Servlet</servlet-name>
> >           <dispatcher>REQUEST</dispatcher>
> >           <dispatcher>FORWARD</dispatcher>
> >           <dispatcher>INCLUDE</dispatcher>
> >       </filter-mapping>
> >
> >
> >   <context-param>
> >    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
> >    <param-value>server</param-value>
> >   </context-param>
> >
> >   <context-param>
> >           <param-name>com.sun.faces.validateXml</param-name>
> >           <param-value>true</param-value>
> >   </context-param>
> >
> >   <servlet-mapping>
> >    <servlet-name>Faces Servlet</servlet-name>
> >    <url-pattern>*.jsf</url-pattern>
> >   </servlet-mapping>
> >
> >
> >    <!--  myFaces Extension Filter - neccessary for extended myFaces
> > components like Tree2 -->
> >    <filter>
> >         <filter-name>MyFacesExtensionsFilter</filter-name>
> >         <filter-class>
> >                 org.apache.myfaces.component.html.util.ExtensionsFilter
> >         </filter-class>
> >         <init-param>
> >                 <param-name>maxFileSize</param-name>
> >                 <param-value>20m</param-value>
> >                 <description>
> >                         Set the size limit for uploaded files.
> >                          Format: 10 - 10 bytes 10k - 10 KB
> >                                  10m - 10 MB 1g - 1 GB
> >                 </description>
> >         </init-param>
> >    </filter>
> >
> >
> >    <filter-mapping>
> >         <filter-name>MyFacesExtensionsFilter</filter-name>
> >         <url-pattern>*.jsf</url-pattern>
> >    </filter-mapping>
> >    <filter-mapping>
> >         <filter-name>MyFacesExtensionsFilter</filter-name>
> >         <url-pattern>/faces/*</url-pattern>
> >    </filter-mapping>
> >
> >    <!--  /myFaces Extension Filter -->
> > </web-app>
> >
> > Thank you,
> >
> >      Kurt
> >
> >
> > on 12/1/2005 9:44 AM Mike Kienenberger stated:
> > > Post your web.xml configuration sections on filters, filter mappings,
> > > servlets, and servlet mappings.   Maybe we can spot the error.
> > >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>

Reply via email to