| Author |
error in launching/running the application
|
seema pal
Ranch Hand
Joined: Nov 17, 2005
Posts: 39
|
|
An error occurred while launching/running the application. Title: ReloadEditor Vendor: ReloadTools Category: Launch File Error JAR resources in JNLP file are not signed by same certificate my jnlp file--- <?xml version="1.0" encoding="utf-8"?> <!-- JNLP File for SwingSet2 Demo Application --> <jnlp codebase="file:///home/guest/scormplayer/editor" href = "EditorFrame.jnlp" > <!--jnlp codebase = "http://172.28.44.20:8080/EditorFrame" href = "EditorFrame.jnlp" --> <information> <title>ReloadEditor</title> <vendor>ReloadTools</vendor> <homepage href="http://www.google.com" /> <description>ReloadEditor</description> <description kind="short">A demo of the capabilities of the ReloadEditor Graphical User Interface.</description> <icon href="file:///home/guest/scormplayer/editor/reload-editor.gif"/> <offline-allowed/> <security> <all-permissions/> </security> </information> <resources> <j2se version="1.4+"/> <jar href="file:///home/guest/scormplayer/editor/reload-editor.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/castor-0.9.5.3-xml.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/jdom.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/reload-diva.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/reload-dweezil.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/reload-jdom.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/reload-moonunit.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/reload-support.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/xercesImpl.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/xml-apis.jar" /> <jar href="file:///home/guest/scormplayer/editor/lib/AppleJavaExtensions.jar"/> </resources> <application-desc main-class="uk.ac.reload.editor.EditorFrame"/> </jnlp> ~ ~ ~ ~
|
 |
Jared Cope
Ranch Hand
Joined: Aug 18, 2004
Posts: 243
|
|
|
So what kind of error?
|
SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
|
 |
j.g. jungman
Greenhorn
Joined: Jan 16, 2006
Posts: 2
|
|
When you will run the above JNLP, you will get the following Web Start exception: JAR resources in JNLP file are not signed by same certificate The reason for this is simple - one of the jar files that you are using was already signed by another party. Here is the way to find it: jarsigner -certs -verbose -verify activation.jar You will see a long list of certificates (one for each file). This means that this specific jar was signed by another party (Sun in our case). The solution for the problem is simple - put this jar in a separate JNLP and reference it in your main JNLP: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="https://jaxb-workshop.dev.java.net/webstart/" href="activation.jnlp"> <information> <title>Activation</title> <vendor>Sun Microsystems, Inc.</vendor> <offline-allowed/> </information> <offline-allowed/> <resources> <jar href="activation.jar"/> </resources> <component-desc/> </jnlp> As you can see, we don't ask for permissions, as this specific jar doesn't need them. Then, you reference this activation.jnlp in your main JNLP: <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="https://jaxb-workshop.dev.java.net/webstart/" href="wizard.jnlp"> <information> <title>XJC Wizard</title> <vendor>https://jaxb-workshop.dev.java.net/</vendor> <description>Wizard frontend for XJC generator</description> <description kind="short">Wizard frontend for XJC generator</description> <offline-allowed/> </information> <offline-allowed/> <security> <all-permissions/> </security> <resources> <j2se version="1.5+"/> <jar href="jaxbw.jar"/> <jar href="substance.jar"/> <jar href="jaxb-api.jar"/> <jar href="jaxb-impl.jar"/> <jar href="jaxb-xjc.jar"/> <jar href="jsr173_api.jar"/> <extension name="activation" href="activation.jnlp"/> </resources> <application-desc main-class="org.jvnet.jaxbw.xjcfe.wizard.WizardMainFrame"/> </jnlp>
|
 |
 |
|
|
subject: error in launching/running the application
|
|
|