Try putting this in the DD, although I don't know if your 
error is entirely related.

    <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-
class>org.apache.myfaces.component.html.util.ExtensionsFilter<
/filter-class>
        <init-param>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
        </init-param>
        <init-param>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
        </init-param>
    </filter>


        <filter-mapping>
                <filter-name>extensionsFilter</filter-name> 
                <url-pattern>*.jsf</url-pattern> 
        </filter-mapping>
        <filter-mapping>
                <filter-name>extensionsFilter</filter-name> 
                <url-pattern>/faces/*</url-pattern> 
        </filter-mapping>

        <listener>
                <listener-
class>org.apache.myfaces.webapp.StartupServletContextListener<
/listener-class>
        </listener>

---- Original message ----
>Date: Wed, 7 Sep 2005 14:15:43 -0500
>From: [EMAIL PROTECTED]  
>Subject: org.apache.myfaces.context.FacesContextFactoryImpl  
>To: "MyFaces Discussion" <[email protected]>
>
>   When I run the myfaces web application with the
>   latest jar files myfaces-impl.jar ,myfaces-api.jar,
>   tomahawk.jar from latest nightly builds, I get the
>   exception
>
>   Did not realize  init() exception thrown by servlet
>   MyCalendar: javax.servlet.UnavailableException:
>   Exception during portlet initialization:
>   java.lang.ClassCastException:
>   org.apache.myfaces.context.FacesContextFactoryImpl
>
>   I see this class is available in myfaces-impl.jar.
>   Am I supposed to add something in the
>   web.xml/portlet.xml/faces-config.xml to use this
>   class. Is it that I am missing some servlet tag in
>   web.xml. I have only one servlet class in my
>   web.xml. Is it enough? What does SourceCodeServlet
>   do? Do we require that in web.xml?
>
>   <!-- Faces Servlet -->
>       <servlet>
>           <servlet-name>Faces Servlet</servlet-name>
>          
>   <servlet-
class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
>           <load-on-startup>1</load-on-startup>
>       </servlet>
>
>        
>       <!-- extension mapping -->
>       <servlet-mapping>
>           <servlet-name>Faces Servlet</servlet-name>
>           <url-pattern>*.jsf</url-pattern>
>       </servlet-mapping>
>
>   Thanks for any help
>
>   Latha
>   DST Systems
>
>     ------------------------------------------------
>
>   This e-mail and any attachments are intended only
>   for the individual or company to which it is
>   addressed and may contain information which is
>   privileged, confidential and prohibited from
>   disclosure or unauthorized use under applicable law.
>   If you are not the intended recipient of this
>   e-mail, you are hereby notified that any use,
>   dissemination, or copying of this e-mail or the
>   information contained in this e-mail is strictly
>   prohibited by the sender. If you have received this
>   transmission in error, please return the material
>   received to the sender and delete all copies from
>   your system.
Dennis Byrne

Reply via email to