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.

Reply via email to