Meaningless Drivel is fun!
The moose likes JNLP and Web Start and the fly likes adventure of stale jars Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "adventure of stale jars" Watch "adventure of stale jars" New topic

adventure of stale jars

prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Hello brethren,

I am using webstart for deploying/updating my swing desktop client,
It is a simple JNLP set up where JNLP picks up the application jar and dependent jars from the same directory where it resides,
Now I made some changes to my application code and deployed (through FTP)it on the weblogic HTTPserver,
cleared my cache from JWS home on local machine,
But to my surprise JNLP was picking the old application jar(2.1.0),
hmmmm I then tried to change the version(2.2.0) so to make it less confusing for the WS but no it still persists on picking the old version jar ,
then I thought may be stale jars are there in HTTP server So I cleansed that as well,
cleaned local cache and deployed new version again but WS is stubborn as ever,
Am I pointing to a different URL where some stale JNLP with its stale jar side kicks ruining my day,
OK I removed the jnlp from server then tried running client of course after all the long and tedious cleansing procedure but this time I got an error because I have deleted the JNLP
so at least I know that I am pointing to the right location (the folder where my jars and jnlp are on http server) through URL,
but If I am pointing to the right place
I am having only the latest jar in server with jnlp pointing to that jar only,
with my desktop cache cleaned what can cause the problem ?
why stale jars are still being downloaded even when I am not pointing that version through JNLP.
Then I googled abit and found this site
Where they suggested to append these five option

And then I realized
Found in cache: DisckCacheEntry
.javaws\cache\http\D<URL>\P80\DM<folder where jars are>\RM<stale.jar>;null
Now what that means ?
Please help
[ January 19, 2007: Message edited by: prateek urmaliya ]

this message brought to you by .... PIE! .... it's yummy! ;)
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
Sorry I forgot to mention the version
JWS 1.2.0_02
JRE 1.4.2_05
if that matters
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

Im not familiar with JNLP but that looks like browser cache. Maybe the webpage is cached and pulling up the old version of the page?
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
that looks like browser cache

where can I look to make sure that no stale jars are cached?
prateek urmaliya
Ranch Hand

Joined: Sep 15, 2006
Posts: 87
OK I have deleted the IE cache but still I am getting the stale jar
Is this a problem with weblogic server maintainig the cache(I am using it as HTTP server)?
I agree. Here's the link:
subject: adventure of stale jars
It's not a secret anymore!