Home » Eclipse Projects » Rich Client Platform (RCP) » Issue with cached library jars in user's workspace after updating with Webstart
Issue with cached library jars in user's workspace after updating with Webstart [message #435267] |
Thu, 11 August 2005 09:21 |
Stefan Hoehn Messages: 12 Registered: July 2009 |
Junior Member |
|
|
First of all a "horray" to all of those who made it possible (even with
some small manual work) to deploy an eclipse-rcp with Java Web Start and
to Pascal (and others) who documented this in a great way! It is
unbelievable how much work this takes away from us developers! Thanks a
lot!
Anyways, only today I noticed an issue during updating with JWS. First
some background on what happens under the hood:
- JWS deploys the files in its own cache area, which is fine (typically
"@user.home/.javaws") .
- However, when the application is started, eclipse starts to write data
for the workbench in an area that can be defined through properties in the
jnlp-file. Here are those:
<property name="osgi.instance.area" value="@user.home/Application
Data/myRcpApp"/>
<property name="osgi.configuration.area" value="@user.home/Application
Data/myRcpApp"/>
This works too.
The path @user.home/Application Data/myRcpApp has the following structure
(no wonder, this is what I told it - see above):
/.metadata
/org.eclipse.core.runtime
/org.eclipse.osgi
If I further look into "/org.eclipse.osgi" it has a folder (bundles) that
seem to be plugin-related to the ones I have in my feature, hence as my
feature has two plugins, I have two folders (called "16" and "23").
Those folders (actually further down below under ".cp" which most probably
stands for classpath) contain jar-files that comprise my plugins. Let's
say one of my plugins is called xyz, it -no surprise- contains a jar that
is called xyz.jar.
Now here comes the problem: When I UPDATE the application, Java Webstart
downloads the whole new application (this is what I want and I checked if
the cache has the new file and it does) but for some reason all libraries
including my jar-file xyz.jar, which contains the new code for my plugin,
are NOT replaced in the /org.eclipse.osgi/bundles/16/1/.cp which is a
problem because my application does not get changed!!!
Only after I manually clean the "@user.home/Application
Data/myRcpApp"-folder and start again, the deployment works and the new
application version is the one that is started for the user.
Is there anyone who has more background on this and knows what I have to
do to make sure that the libraries, which are changed during new
webstart-updates, get replaced in the user's home directory automatically?
Thanks for help,
Stefan
|
|
|
Re: Issue with cached library jars in user's workspace after updating with Webstart [message #435384 is a reply to message #435267] |
Wed, 17 August 2005 11:35 |
Eclipse User |
|
|
|
Originally posted by: sandi.schoellhammer.apc*SPAM*.com
Hi Stefan,
try doing the below it should fix your problem
<application-desc main-class="org.eclipse.core.launcher.WebStartMain">
<argument>-clean</argument>
</application-desc>
Regards
Sandi
Stefan Hoehn wrote:
> First of all a "horray" to all of those who made it possible (even with
> some small manual work) to deploy an eclipse-rcp with Java Web Start and
> to Pascal (and others) who documented this in a great way! It is
> unbelievable how much work this takes away from us developers! Thanks a
> lot!
>
> Anyways, only today I noticed an issue during updating with JWS. First
> some background on what happens under the hood:
>
> - JWS deploys the files in its own cache area, which is fine (typically
> "@user.home/.javaws") .
> - However, when the application is started, eclipse starts to write data
> for the workbench in an area that can be defined through properties in
> the jnlp-file. Here are those:
> <property name="osgi.instance.area" value="@user.home/Application
> Data/myRcpApp"/>
> <property name="osgi.configuration.area"
> value="@user.home/Application Data/myRcpApp"/>
> This works too.
>
> The path @user.home/Application Data/myRcpApp has the following
> structure (no wonder, this is what I told it - see above):
> /.metadata
> /org.eclipse.core.runtime
> /org.eclipse.osgi
>
> If I further look into "/org.eclipse.osgi" it has a folder (bundles)
> that seem to be plugin-related to the ones I have in my feature, hence
> as my feature has two plugins, I have two folders (called "16" and "23").
>
> Those folders (actually further down below under ".cp" which most
> probably stands for classpath) contain jar-files that comprise my
> plugins. Let's say one of my plugins is called xyz, it -no surprise-
> contains a jar that is called xyz.jar.
> Now here comes the problem: When I UPDATE the application, Java Webstart
> downloads the whole new application (this is what I want and I checked
> if the cache has the new file and it does) but for some reason all
> libraries including my jar-file xyz.jar, which contains the new code for
> my plugin, are NOT replaced in the /org.eclipse.osgi/bundles/16/1/.cp
> which is a problem because my application does not get changed!!!
>
> Only after I manually clean the "@user.home/Application
> Data/myRcpApp"-folder and start again, the deployment works and the new
> application version is the one that is started for the user.
>
> Is there anyone who has more background on this and knows what I have to
> do to make sure that the libraries, which are changed during new
> webstart-updates, get replaced in the user's home directory automatically?
>
> Thanks for help,
> Stefan
>
|
|
|
Re: Issue with cached library jars in user's workspace after updating with Webstart [message #435591 is a reply to message #435267] |
Fri, 19 August 2005 00:39 |
Pascal Rapicault Messages: 440 Registered: July 2009 |
Senior Member |
|
|
Could you please open a bug report against platform / runtime, with a
detail about how your plugin is structured (manifest.mf,
build.properties, plugin.xml)
thx
PaScaL
Stefan Hoehn wrote:
> First of all a "horray" to all of those who made it possible (even with
> some small manual work) to deploy an eclipse-rcp with Java Web Start and
> to Pascal (and others) who documented this in a great way! It is
> unbelievable how much work this takes away from us developers! Thanks a
> lot!
>
> Anyways, only today I noticed an issue during updating with JWS. First
> some background on what happens under the hood:
>
> - JWS deploys the files in its own cache area, which is fine (typically
> "@user.home/.javaws") .
> - However, when the application is started, eclipse starts to write data
> for the workbench in an area that can be defined through properties in
> the jnlp-file. Here are those:
> <property name="osgi.instance.area" value="@user.home/Application
> Data/myRcpApp"/>
> <property name="osgi.configuration.area"
> value="@user.home/Application Data/myRcpApp"/>
> This works too.
>
> The path @user.home/Application Data/myRcpApp has the following
> structure (no wonder, this is what I told it - see above):
> /.metadata
> /org.eclipse.core.runtime
> /org.eclipse.osgi
>
> If I further look into "/org.eclipse.osgi" it has a folder (bundles)
> that seem to be plugin-related to the ones I have in my feature, hence
> as my feature has two plugins, I have two folders (called "16" and "23").
>
> Those folders (actually further down below under ".cp" which most
> probably stands for classpath) contain jar-files that comprise my
> plugins. Let's say one of my plugins is called xyz, it -no surprise-
> contains a jar that is called xyz.jar.
> Now here comes the problem: When I UPDATE the application, Java Webstart
> downloads the whole new application (this is what I want and I checked
> if the cache has the new file and it does) but for some reason all
> libraries including my jar-file xyz.jar, which contains the new code for
> my plugin, are NOT replaced in the /org.eclipse.osgi/bundles/16/1/.cp
> which is a problem because my application does not get changed!!!
>
> Only after I manually clean the "@user.home/Application
> Data/myRcpApp"-folder and start again, the deployment works and the new
> application version is the one that is started for the user.
>
> Is there anyone who has more background on this and knows what I have to
> do to make sure that the libraries, which are changed during new
> webstart-updates, get replaced in the user's home directory automatically?
>
> Thanks for help,
> Stefan
>
|
|
|
Goto Forum:
Current Time: Sun Dec 08 15:56:30 GMT 2024
Powered by FUDForum. Page generated in 0.03556 seconds
|