The way I solved it was to have an index.html and put a forward on the page to the Login page or the page you want the user to see first.
Veena On Mon, Jun 7, 2010 at 12:01 AM, Sutapa Dey <[email protected]> wrote: > Hi Himansu, > > You can probably try putting an exception handling mechanism in your app. > Can also check the below link: > > http://patton-prog-tips.blogspot.com/2008/10/myfaces-handling-viewexpiredexception.html > > I my self fixed it by adding a faces-exception-config.xml. > > > On Fri, Jun 4, 2010 at 2:22 PM, Mr. Himanshu Gupta > <[email protected]>wrote: > >> I have provided the suggested config in the web.xml >> The navigation works fine if i remove the richfaces but with it the >> navigation fails. Following is the screenshot showingthe jars and >> their version.. >> >> [image: oo.JPG] >> >> *web.xml* >> >> <?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>Archetype Created Web Application</display-name> >> >> >> <!-- Faces Servlet --> >> <servlet> >> <servlet-name>Faces Servlet</servlet-name> >> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> >> <load-on-startup>1</load-on-startup> >> </servlet> >> >> <!-- Faces Servlet Mapping --> >> <servlet-mapping> >> <servlet-name>Faces Servlet</servlet-name> >> <url-pattern>*.jsf</url-pattern> >> </servlet-mapping> >> >> <context-param> >> <param-name>org.richfaces.SKIN</param-name> >> <param-value>blueSky</param-value> >> </context-param> >> <context-param> >> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> >> <param-value>server</param-value> >> </context-param> >> <filter> >> <display-name>RichFaces Filter</display-name> >> <filter-name>richfaces</filter-name> >> <filter-class>org.ajax4jsf.Filter</filter-class> >> </filter> >> >> <filter-mapping> >> <filter-name>richfaces</filter-name> >> <servlet-name>Faces Servlet</servlet-name> >> <dispatcher>REQUEST</dispatcher> >> <dispatcher>FORWARD</dispatcher> >> <dispatcher>INCLUDE</dispatcher> >> </filter-mapping> >> >> <listener> >> <listener-class> >> org.apache.myfaces.webapp.StartupServletContextListener >> </listener-class> >> </listener> >> <session-config> >> <session-timeout>30</session-timeout> >> </session-config> >> >> </web-app> >> >> >> >> On 4 June 2010 05:24, Guy Rouillier <[email protected]> wrote: >> >>> On 6/3/2010 9:39 AM, Mr. Himanshu Gupta wrote: >>> >>>> I have a project in which whenever I try to navigate I get >>>> ViewExpiredException< >>>> http://java.sun.com/javaee/6/docs/api/javax/faces/application/ViewExpiredException.html >>>> > >>>> >>> >>> This is a very common issue. You've provided absolutely no information, >>> so start by putting this in your web.xml: >>> >>> <session-config> >>> <session-timeout>30</session-timeout> >>> </session-config> >>> >>> Search the net for some articles on he JSF lifecycle and become intimately >>> familiar with it. >>> >>> -- >>> Guy Rouillier >>> >> >> >> >> -- >> Regards >> Himanshu Gupta >> >

