Return-Path: X-Original-To: apmail-myfaces-users-archive@www.apache.org Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 18F83D3EA for ; Thu, 21 Jun 2012 05:34:02 +0000 (UTC) Received: (qmail 74829 invoked by uid 500); 21 Jun 2012 05:34:01 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 74577 invoked by uid 500); 21 Jun 2012 05:34:01 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 74564 invoked by uid 99); 21 Jun 2012 05:34:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 05:34:00 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lu4242@gmail.com designates 209.85.160.53 as permitted sender) Received: from [209.85.160.53] (HELO mail-pb0-f53.google.com) (209.85.160.53) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2012 05:33:51 +0000 Received: by pbbrr13 with SMTP id rr13so1610293pbb.12 for ; Wed, 20 Jun 2012 22:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=ZtI0m8sulBDLDJeUzSH4frYE14PNhVi9n1XtY0kpz5M=; b=um89OoqvmXFfsNCzF3Hv7Wloe6GHeRTiwg+NW3WI6fzN5o4c793ipoqsYjWhiaQvsA 5Fu3Cr5mE/zJ/UXfuZdbWFbRD8pdOXR+R+v85IZKIZo1JI11R25/4/wlpcx8ogFh7vYM foiM6w538w3eo0vqsk2APQnDiIBGCtsUtAe2UprPc4r+8AKAXFzYaXHZuPs5pU6OKxOs 7STaV7/jFpt8vkGYTRZt+eI7f+V+Q0YUUmlYu0OlQlOYsUY9enPcjR+pjjaX09s6FsUR Jr9HqK+Yjbt8d1dtk6T/13ZtMAY7gIz6vLOP4d8y31FOi7Kllyvi7A4EkxBhGBaRiPaJ +2fA== MIME-Version: 1.0 Received: by 10.68.241.227 with SMTP id wl3mr84393842pbc.89.1340256809933; Wed, 20 Jun 2012 22:33:29 -0700 (PDT) Received: by 10.142.80.16 with HTTP; Wed, 20 Jun 2012 22:33:29 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jun 2012 07:33:29 +0200 Message-ID: Subject: Re: Re[2]: "No saved view state could be found" after redeploy From: Leonardo Uribe To: MyFaces Discussion , =?UTF-8?Q?Pavel_Arno=C5=A1t?= Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi It is a known situation. You need to check the instructions here: http://wiki.apache.org/myfaces/Secure_Your_Application When you redeploy your app, a new encryption key is generated, so the old view state cannot be decoded and ViewExpiredException is thrown. Just set the right params and that's it. regards, Leonardo Uribe 2012/6/21 Pavel Arno=B9t : > Hi Ted, > > 1) tomcat session persistence should be on by default and " pathname=3D"" />" is commented out, so I suppose that it's on > > 2) state saving metod should be server, it's default and > javax.faces.STATE_SAVING_METHOD in web.xml is set to server > > With Tomcat 7.0.27+OWB 1.1.4+MyFaces 2.1.8+CODI 1.0.5 exception is thrown= , > with =A0Tomcat 7.0.27+OWB 1.1.4+Mojarra 2.1.9+CODI 1.0.5 it is not. > > I have not found anything unsual in Tomcat's log. > I tried it once more now, with javax.faces.STATE_SAVING_METHOD set to cli= ent > in web.xml, and it also throws ViewExpiredException, strange. > > ------ P=F9vodn=ED zpr=E1va ------ > Od: "Ted" > Komu: "MyFaces Discussion" ;"Pavel Arno=B9t" > > Odesl=E1no: 20.6.2012 23:58:12 > P=F8edm=ECt: Re: "No saved view state could be found" after redeploy >> >> there's 2 things you might want to check >> >> 1) tomcat's session persistance across tomcat restarts : >> http://tomcat.apache.org/tomcat-7.0-doc/config/manager.html >> 2) jsf state saving method, i.e. client or server >> >> >> On Thu, Jun 21, 2012 at 7:16 AM, Pavel Arno=B9t >> wrote: >> Hi, >> >> I have simple page with one form. When I: >> >> 1) load page >> 2) redeploy application >> 3) submit form >> >> exception is thrown: >> >> /index.facesNo saved view state could be found for the view identifier: >> /index.faces >> >> Caused by: >> javax.faces.application.ViewExpiredException - /index.facesNo saved view >> state could be found for the view identifier: /index.faces >> at >> org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExec= utor.java:132) >> >> >> Server is Tomcat 7.0.27 with OWB 1.1.4, MyFaces 2.1.8 and CODI 1.0.5. I >> have tried replacing MyFaces with Mojarra 2.1.9 and no exception is thro= wn >> with Mojarra in submit after redeploy. Why MyFaces throws exception and >> Mojarra don't? >> >> Thanks, >> Regards, >> Pavel >> >> > > > > -- > Ted. > >