osgi.framework.extensions does not work with WebStart [message #1240490] |
Thu, 06 February 2014 10:40  |
Eclipse User |
|
|
|
Hi,
I am trying to create WebStart for my Eclipse RCP application and need to add to osgi.framework.extensions addition Adaptor Hook from org.eclipse.fx.osgi and others.
I am doing like this in JNLP file:
<property name="osgi.framework.extensions" value="javax.transaction,org.eclipse.equinox.transforms.hook,org.eclipse.equinox.weaving.hook,org.eclipse.fx.osgi" />
Problem is that I am getting exception that bundle cannot be found.
After debugging I see that method readFrameworkExtensions() from org.eclipse.equinox.launcher.Main when looking for bundle is getting a path to jar file downloaded to local cache (e.g. C:\Users\pdolecinski\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\17\3bb97dd1-333be9ad). And later on, when trying to create extensionURL, it is using line code:
extensionURL = new URL(installLocation.getProtocol(), installLocation.getHost(), installLocation.getPort(), path);
where installLocation is http://localhost/webstart and created extensionURL looks like
http://localhost/webstart/C:\Users\pdolecinski\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\17\3bb97dd1-333be9ad
Even more, let's say path would be correct, then code expect to find file with .jar extension and the one from cache doesn't have it.
I have no idea if there is some workaround which I do not know or it simply a bug.
Any ideas how to add something to osgi.framework.extensions under WebStart?
Cheers,
Paweł.
|
|
|
|
|
Re: osgi.framework.extensions does not work with WebStart [message #1695146 is a reply to message #1241117] |
Tue, 12 May 2015 05:43  |
Eclipse User |
|
|
|
Hi,
It was a difficult path to end up and find this thread.
I have the exact same problem which is described. I have an RCP application which needs framework extensions (in my case : org.eclipse.fx.osgi).
Reading the bug 427663, i understand that the problem wasn't patched. I tried the snippet provided but still blocked.
Have you been working on that since ? Anyway i could get the code ?
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.05504 seconds