Webstart RCP (based on eclipse 3.6.2) [message #660198] |
Thu, 17 March 2011 10:05 |
|
Hi all,
i'm releasing our RCP solution via webstart.
everything ran smoothly until yesterday when I updated eclipse to 3.6.2
(delta pack too).
Now the client can't start, raising an error like:
com.sun.deploy.net.FailedDownloadException: Impossibile caricare la
risorsa: http://myserver/app/plugins/
org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100 520.jar
wrapped exception says
java.io.IOException: invalid SHA1 signature file digest for
runtime_registry_compatibility.jar
runtime_registry_compatibility.jar is an archive packed in the root of
the plugin o.e.c.r.compatibility.registry_3.3.0.v20100520.jar
I sign my jars with our certificate, and if i look inside the internal
jar i see, in the META-INF, our signature files.
Some idea?
--
kindly Elvis Dominguez
|
|
|
Re: Webstart RCP (based on eclipse 3.6.2) [message #660386 is a reply to message #660198] |
Fri, 18 March 2011 08:54 |
|
On Thu, 17 Mar 2011 10:05:15 +0000, Elvis Dominguez wrote:
> Hi all,
>
> i'm releasing our RCP solution via webstart. everything ran smoothly
> until yesterday when I updated eclipse to 3.6.2 (delta pack too).
>
> Now the client can't start, raising an error like:
> com.sun.deploy.net.FailedDownloadException: Impossibile caricare la
> risorsa: http://myserver/app/plugins/
> org.eclipse.core.runtime.compatibility.registry_3.3.0.v20100 520.jar
>
> wrapped exception says
>
> java.io.IOException: invalid SHA1 signature file digest for
> runtime_registry_compatibility.jar
>
> runtime_registry_compatibility.jar is an archive packed in the root of
> the plugin o.e.c.r.compatibility.registry_3.3.0.v20100520.jar
>
> I sign my jars with our certificate, and if i look inside the internal
> jar i see, in the META-INF, our signature files.
>
> Some idea?
Just as info: if I export the app using the File > Export than the jar in
signed correctly...
--
kindly Elvis Dominguez
|
|
|
|
Re: Webstart RCP (based on eclipse 3.6.2) [message #673720 is a reply to message #673604] |
Tue, 24 May 2011 14:37 |
|
Hi
What I have additionally found is, as said, that exporting manually from eclipse the applications runs ok.
I have checked generated jars and they are signed only with my own certificate (but only if I tick the 'generate jnlp...' in export dialog!).
When I build my plugins with the ant task then eclipse jars (swt, osgi, ...) are signed with eclipse certificate.
This results in jars with double signing.
Is there a way to tell the eclipse build plugins ant task to not sign exported plugins?
Sorry for bad english
Kindly
Elvis D.
|
|
|
Re: Webstart RCP (based on eclipse 3.6.2) [message #673723 is a reply to message #673604] |
Tue, 24 May 2011 14:42 |
|
Christian Minke wrote on Tue, 24 May 2011 10:40Hi,
had the same problem. Seams that jarsigner doesn't like to sign signed packages.
Just remove:
- META-INF/eclipse.inf
- META-INF/ECLIPSE.RSA
- META-INF/ECLIPSE.SF
If you only work with the jar, you'll somewhere find an howto to unpack, remove and pack it.
e.g.:
jar -xvf ../plugin.jar
rm META-INF/eclipse.inf
rm META-INF/ECLIPSE.RSA
rm META-INF/ECLIPSE.SF
edit META-INF/MANIFEST.MF
jar cvf ../plugin.jar META-INF/MANIFEST.MF *
Good luck!
Thank you for your tip. That was the problem.
|
|
|
Powered by
FUDForum. Page generated in 0.04492 seconds