Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8317459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:36:40+00:00 2026-06-08T21:36:40+00:00

We are Using SUN JSF 1.2, WebSphere 7.0 for our application, we are getting

  • 0

We are Using SUN JSF 1.2, WebSphere 7.0 for our application, we are getting ViewExpiredException only during the load testing

I have gone through the below link

javax.faces.application.ViewExpiredException: View could not be restored

Have followed most of the stuff,

  1. Setting the context param,

    com.sun.faces.enableRestoreView11Compatibility
    true

  2. Instructed the browser to not cache the dynamic JSF pages by adding the below code at top of all JSP pages,

        res.setHeader("Cache-Control", "no-cache, no-store, must-revalidate"); 
        res.setHeader("Pragma", "no-cache");
        res.setDateHeader("Expires", -1); 
    

We are not getting the exception when we manually browse through the application. I am not able to figure out the issue.

Kindly advice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T21:36:42+00:00Added an answer on June 8, 2026 at 9:36 pm

    The views are stored in the session. The default maximum amount of views which is stored in the session is 15 which is in Mojarra configureable by the com.sun.faces.numberOfViewsInSession context paramerer.

    Imagine a situation wherein the enduser opens a random JSF page with a form (which is effectively one view) in at least 16 different browser tabs/windows in the same session. Submitting the form in the first opened tab/window will then throw ViewExpiredException. Perhaps the same is happening during load testing. The load testing should better have created different sessions.

    As stated in the answer which you found yourself, the only fix for this is to set the JSF state saving method to client instead of server. Disabling the browser cache just prevents ViewExpiredException which occurs on pages which the enduser has obtained from the browser cache (e.g. by pressing back button and so on).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have developed an application using jsf 1.2. it worked fine with apache tomcat
In my current project we're trying to write an application (using SUN RI JSF
I am actually trying to do a web application using JSF, and I have
I have a small web application developed using Icefaces 1.8.2 and jsf 1.1 which
I have a Java application runnning on a Glassfish server using JSF 2.0.2. at
I am using jsf 2.0 with primefaces. In my application i have login page
Using jsf2 (see maven dependencies ) <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-impl</artifactId> <version>2.1.10</version> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId>
I'm using JSF 2.0 with Facelets in a Java EE 6 application server (GlassFish
I have been trying with limited success to code a JSF application. In one
I have just started using JSF 2.0 and faced a warmly welcomed issue. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.