myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Kramer" <alfo...@gmx.li>
Subject ViewExpiredException
Date Sun, 03 Aug 2008 09:56:19 GMT
Hey,

 

I created a small login page including 2 inputText fields and a command
button. When pressing the commandbutton which refers to a simple method
within a bean that always returns "success" I receive the following error
message:

 

 

javax.faces.application.ViewExpiredException: /login.jspThe expected view
was not returned for the view identifier: /login.jsp

            at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor
.java:88)

            at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:1
03)

            at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)

            at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)

            at
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)

            at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.jav
a:366)

            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)

            at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

            at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128
)

            at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102
)

            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)

            at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)

            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)

            at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)

            at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

 

 

I've got no clue why this happens.

 

My FacesCFG:

<?xml version="1.0" encoding="UTF-8"?>

<faces-config xmlns="http://java.sun.com/xmls/ns/javaee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/javee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"

      version="1.2">

      <navigation-rule>

            <from-view-id>/login.jsp</from-view-id>

            <navigation-case>

                  <from-outcome>loggedIn</from-outcome>

                  <to-view-id>test.jsp</to-view-id>

            </navigation-case>

      </navigation-rule>

      <managed-bean>

            <managed-bean-name>Login</managed-bean-name>

 
<managed-bean-class>de.mst.presentationLayer.beans.LoginBean</managed-bean-c
lass>

            <managed-bean-scope>session</managed-bean-scope>

      </managed-bean>

</faces-config>

 

 

Web-XML:

 

 

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
version="2.5">

  <display-name>mst</display-name>

  <welcome-file-list>

    <welcome-file>index.html</welcome-file>

    <welcome-file>index.htm</welcome-file>

    <welcome-file>index.jsp</welcome-file>

    <welcome-file>default.html</welcome-file>

    <welcome-file>default.htm</welcome-file>

    <welcome-file>default.jsp</welcome-file>

  </welcome-file-list>

  <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>

  

  

  <context-param>

     <param-name>org.apache.myfaces.USE_ENCRYPTION</param-name>

     <param-value>false</param-value>

      </context-param>

  

  

  

  <!--  Rich FACES -->

  <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>

</web-app>

 

I am using MyFaces 1.23, Java 1.605 Tomcat 6.018 and Richfaces 3.2.1

 

Any Idea?

 

Thank you very much in advance.

 

Best regards

Andreas


Mime
View raw message