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

  • SEARCH
  • Home
  • 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 1021551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:19:40+00:00 2026-05-16T11:19:40+00:00

I have a use case where my GWT application is running on a client

  • 0

I have a use case where my GWT application is running on a client browser and I stop my tomcat and update the relevant WAR.
What I’d like to happen is that once I load the tomcat every existing client will be reloaded automatically so they will be using the correct version of the application.

Currently I’m facing two problems:

  1. I don’t know how to signal to the currently loaded application that it’s obsolete and it should reload. I’m thinking of somehow identifying in my app that the reason for the GWT-RPC failure is 404 and so it should reload, but I’m not sure how this could be identified. I cannot reload on every GWT-RPC of course as the server might just be down for no reason and will be back up in a second or two without a problem.
  2. For some reason, the moduleName.nocache.js file is cached and so even if I manually refresh I can see a 404 request on the server as the app is looking for a non existent resource (the previous version), once I delete the cache of the browser this is resolved. Does anyone have any ideas why this is cached? I have changed nothing, in this regard, to the server settings.

Edit:
1. It seems there is no GWT straightforward way of doing this so what I’ve decided is that when a module loads it receives a module version, a Double, and if a GWT-RPC fails the module queries the Server for its current module version and if there is a mismatch it reloads the page. The GWT-RPC which is used to query the module version is constant and won’t be changed for compatibility reasons. This way, even if all other GWT-RPC methods change the module is guaranteed this method will be valid.
2. It seems, thanks to BalusC’s suggestion, that the file is cached for 5-10 minutes only and that’s why I’ve been seeing non-deterministic behavior in this area. I’ve opened another question on how to set the headers on a single js file as I read somewhere that it’s related to the container and not to GWT.
Thanks,
Ittai

  • 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-05-16T11:19:41+00:00Added an answer on May 16, 2026 at 11:19 am

    HTTP doesn’t support pushing of data. You need to use a webserver specific technique. In Tomcat, that’s Comet. This is however a lot of work. I would rather recommend to use JavaScript/Ajax to let the client poll for the version change at certain intervals. E.g. every five minutes or so. If the result indicates a change in the version. then you can let JavaScript reload the page by window.location.reload.

    As to your caching problem, verify the response headers of the requested file in question. It should match at least the following headers:

    Cache-Control: no-cache, no-store, must-revalidate
    Pragma: no-cache
    Expires: 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this use case of an xml file with input like Input: <abc
I have a use case where any text box created in the application should
I have a use case where the application will automatically attempt to retrieve a
I have a use case in my application, where after certain point, I need
I have a use case where I'd like my app to give focus to
In my GWT 2.4.0 application I use RequestFactory and Hibernate/JPA. I have an entity
I have a use case where I'd like to access parent tags within list
I'm just starting to learn AspectJ, and I have use-case for say, User login.
I have following use-case: there are several assemblies decorated with ProtoContract classes and I
I have a use case where I need to call a (non-static) method in

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.