Java Webstart error when launching the client

Hi,

I keep on having an error when launching Servoy client with Java 1.4.2_09 on MacOS X.4.2 (Servoy 2.2.1RC3 build 332).

The error message tells that JAR resources in JNLP file are not signed by the same certificate.

Emptying the cache doesn’t solve the problem.

Here’s the exception message present in the error window:

JNLPException[category: Errore di avvio file : Exception: null : LaunchDesc: 
<jnlp spec="1.0+" codebase="http://localhost:8080/" href="http://localhost:8080/servoy-client/unsigned.jnlp">
  <information>
    <title>Servoy Client Libs</title>
    <vendor>Others</vendor>
    <homepage href="null"/>
  </information>
  <resources>
    <jar href="http://localhost:8080/beans/SSHTermApplet-signed.jar" version="1064690656000" part="SSHTermApplet-signed" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/htmlbean.jar" version="1103556443000" part="htmlbean" download="lazy" main="false"/>
    <package name="HTMLPane." part="htmlbean" recursive="true"/>
    <jar href="http://localhost:8080/beans/IClock.jar" version="1038561746000" part="IClock" download="lazy" main="false"/>
    <package name="com.ibm.clock." part="IClock" recursive="true"/>
    <jar href="http://localhost:8080/beans/Simulacrum.jar" version="1125044436000" part="Simulacrum" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/SSHTermApplet-jdk1.3.1-dependencies-signed.jar" version="1064690660000" part="SSHTermApplet-jdk1" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/SSHVncApplet-signed.jar" version="1064690730000" part="SSHVncApplet-signed" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/molecule.jar" version="1048602127000" part="molecule" download="lazy" main="false"/>
    <package name="sunw.demo.molecule." part="molecule" recursive="true"/>
    <jar href="http://localhost:8080/beans/s11_chart.jar" version="1055778081000" part="s11_chart" download="lazy" main="false"/>
    <package name="com.ibm.eou." part="s11_chart" recursive="true"/>
    <jar href="http://localhost:8080/beans/SSHVncApplet-jdk1.3.1-dependencies-signed.jar" version="1064690734000" part="SSHVncApplet-jdk1" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/jftp.jar" version="1117739627000" part="jftp" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/jpedal.jar" version="1121171907000" part="jpedal" download="lazy" main="false"/>
    <package name="org.jpedal.PdfDecoder." part="jpedal" recursive="true"/>
    <jar href="http://localhost:8080/beans/dbtreeview.jar" version="1118414834000" part="dbtreeview" download="lazy" main="false"/>
    <package name="com.servoy.r2." part="dbtreeview" recursive="true"/>
    <jar href="http://localhost:8080/beans/SSHVncApplet-jdkbug-workaround-signed.jar" version="1064690732000" part="SSHVncApplet-jdkbug-workaround-signed" download="lazy" main="false"/>
    <jar href="http://localhost:8080/beans/swingbeans.jar" version="1103556443000" part="swingbeans" download="lazy" main="false"/>
    <package name="javax.swing." part="swingbeans" recursive="true"/>
    <jar href="http://localhost:8080/beans/SSHTermApplet-jdkbug-workaround-signed.jar" version="1064690658000" part="SSHTermApplet-jdkbug-workaround-signed" download="lazy" main="false"/>
    <jar href="http://localhost:8080/lafs/kunststoff.jar" version="1077716002000" part="kunststoff" download="lazy" main="false"/>
    <package name="com.incors.plaf." part="kunststoff" recursive="true"/>
    <jar href="http://localhost:8080/lafs/skinlf.jar" version="1029384167000" part="skinlf" download="lazy" main="false"/>
    <package name="com.l2fprod.gui." part="skinlf" recursive="true"/>
  </resources>
  <library-desc unique-id="null"/>
</jnlp> ]
	at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1031)
	at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:933)
	at com.sun.javaws.Launcher.continueLaunch(Launcher.java:766)
	at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:468)
	at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
	at com.sun.javaws.Launcher.run(Launcher.java:165)
	at java.lang.Thread.run(Thread.java:613)

Ciao Ric :)

At least one of your libs must be already signed.
It’s probably one of the SSH libraries.

A workaround is to unpack all of the contents of the offending libs to a disk location. Re-jar and use the new jar instead of the old signed jars.

giuliano

…forgot to mention…make sure you do not include any digest or security files such as DSA or SF files.

SalernoJ:
…forgot to mention…make sure you do not include any digest or security files such as DSA or SF files.

Thanks, Julian

but the question is “How can it happens?”. I didn’t do anything strange and certainly I didn’t touch my java libraries.

And why version 2.1.2 doesn’t have this problem, too?

Signed applets seems to cause the problem, we have to investigate this, remove the signed applets and it will work.

Riccardino:

SalernoJ:
…forgot to mention…make sure you do not include any digest or security files such as DSA or SF files.

Thanks, Julian

but the question is “How can it happens?”. I didn’t do anything strange and certainly I didn’t touch my java libraries.

And why version 2.1.2 doesn’t have this problem, too?

:oops: I forgot one little detail:
I bravely placed 3 applets in the bean folder, a couple of weeks ago and, not using them, I forgot about their existence…
One of them gave me this problem… :oops:

Very brave indeed ;)

SalernoJ:
Very brave indeed ;)

Well, after discovering those jars, brave is not exactly the adjective that came to my mind… :wink:

Maybe I should ask the dev team to add a new function, useful to save people from theirselves:
currentDeveloper.getMaxNeuronsNumber

:D

:D what a great feature request
Very usefull building if statements

Will currentDeveloper.getMaxNeuronsNumber allow negative numbers - ie in the aftermath of a Servoy World ??

Graham Greensall
Worxinfo Ltd