السلام عليكم ..
ما معنى هذا الخطأ ؟
exception javax.servlet.ServletException: viewId:/welcomeJSF.jsp - View /welcomeJSF.jsp could not be restored. javax.faces.webapp.FacesServlet.service(FacesServlet.java:325) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393) root cause javax.faces.application.ViewExpiredException: viewId:/welcomeJSF.jsp - View /welcomeJSF.jsp could not be restored. com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212) com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
رغم أني راجعت كود الصفحات جيدا ، إضافة إلى ملف face-config.xml
صفحة welcomeJSF.jsp :
<f:view>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>E-SHOPE</title>
<link href="../CSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<jsp:include page="header.jsp"/>
<h:form>
<table width="904" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="150" height="125"><img src="Style_img/product_box.gif" width="127" height="125" alt="products" /></td>
<td width="162"><p class="title"><a href="store.jsp">Products</a></p>
<p class="style2">here you will find a group of products that have high quality.</p></td>
<td width="140" height="125"><img src="Style_img/search_p_box.gif" width="127" height="125" alt="search?" /></td>
<td width="138"><p class="title"><a href="search.jsp">Search</a></p>
<p class="style2">search about your<br />
favorite products </p></td>
<td width="141" height="125"><img src="Style_img/contact.gif" width="127" height="125" alt="contact" /></td>
<td width="173"><p class="title"><h:commandLink styleClass="links" value="Contact Us" action="contact"/> </p>
<p class="style2">If you have Suggestions<br />
or complains please<br />
submit it</p></td>
</tr>
<tr>
<td height="509" colspan="6" background="Style_img/up_g_line.gif">
<p id="about">About :</p>
<p id="aboutP">This solution for a company that wish to publish its products on the Web<br />
In addition to selling and provide products for its customers.</p>
</td>
</tr>
<tr><td colspan="6" align="center"><p id="done">----</p></td></tr>
</table>
</h:form>
</body>
</html>
</f:view>ملف face-config.xml :
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
<managed-bean>
<managed-bean-name>contact</managed-bean-name>
<managed-bean-class>web.contact</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/header.jsp</from-view-id>
<navigation-case>
<from-outcome>home</from-outcome>
<to-view-id>/welcomeJSF.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>contact</from-outcome>
<to-view-id>/contact.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/login.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/contact.jsp</from-view-id>
<navigation-case>
<from-outcome>fail</from-outcome>
<to-view-id>/error.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/welcomeJSF.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>ارجو من الإخوة الكرام ، إن كان لديهم فسحة من الوقت النظر في ذلك.. شاكر للجميع.
