[Qt-jambi-interest] Problems with java web start and cache]

Eskil Abrahamsen Blomfeldt eblomfel at trolltech.com
Fri Jul 4 08:14:48 CEST 2008


paul wrote:
> Well it's the same with the qtjambi-linux32-gcc-4.4.0_01.jar I got from
> http://trolltech.com/downloads/opensource#qt-jambi-open-source
> The problem is not only with the qtjambi demo I guess :
>
>  using cache directory:
> '/tmp/QtJambi_paul_i386_4.4.0_01_gcc-20080522-0210'
>  - cache directory exists
>
> It seems that the problem is in the qtjambi-deployment.xml file where
> this cache is mentionned. How to avoid the cache to be always the same
> name ? Or how to make this cache deleted when jws session is ended ?
>   

Hi Paul,

This may be due to a problem with webstart deployment in Qt Jambi 4.4.0. 
It currently requires that any .jar file using the same cache entry for 
its libraries has the same MD5 sum. This of course fails if you mix 
regular runs of Qt Jambi with a run where the .jar file has been signed 
(like in the case of webstart.)

Could you try changing the <cache key="..."> in the 
qtjambi-deployment.xml file inside the .jar to see if that solves the 
problem for you? If the application is runnable twice in a row, it means 
the fix worked (note that if you repack or resign the .jar file, you 
will have to either change this key or delete the cache entry. If you 
are building from source, the cache key should be automatically updated 
with a timestamp to avoid collisions.)

Since the problem is also occurring with the official webstart, however, 
it may be a bigger issue with webstart deployment. We will investigate this.

-- Eskil



More information about the Qt-jambi-interest mailing list