This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Applets and the fly likes certificate error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "certificate error" Watch "certificate error" New topic
Author

certificate error

Tom Price
Greenhorn

Joined: Nov 09, 2010
Posts: 3
hi,
I am working on a applet which accesses twitter, it uses cross domain access, I am developing this applet in netbeans IDE, I select a option to run as web start, and self sign, so it solve a problem of cross domain, but now i am geting other error when run in IE browser but working perfectly fine in safari.

Error

--------------------------------------------------------------------------------
exception: JAR resources in JNLP file are not signed by same certificate.
JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="file:/C:/Developement/TwitterDashboardApp/dist/" href="file:/C:/Developement/TwitterDashboardApp/dist/launch.jnlp">
<information>
<title>TwitterDashboardApp</title>
<vendor>Tom</vendor>
<homepage href="null"/>
<description>TwitterDashboardApp</description>
<description kind="short">TwitterDashboardApp</description>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources>
<java java-vm-args="-Djava.security.policy=applet.policy" version="1.5+"/>
<jar href="file:/C:/Developement/TwitterDashboardApp/dist/TwitterDashboardApp.jar" download="eager" main="true"/>
<jar href="file:/C:/Developement/TwitterDashboardApp/dist/lib/twitter4j-core-2.1.7-SNAPSHOT.jar" download="eager" main="false"/>
</resources>
<applet-desc name="TwitterDashboardApp" main-class="TwitterApplet" documentbase="file:/C:/Developement/TwitterDashboardApp/dist/launch.html" width="300" height="300"/>
</jnlp> ]
at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: JNLPException[category: Launch File Error : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="file:/C:/Developement/TwitterDashboardApp/dist/" href="file:/C:/Developement/TwitterDashboardApp/dist/launch.jnlp">
<information>
<title>TwitterDashboardApp</title>
<vendor>Tom</vendor>
<homepage href="null"/>
<description>TwitterDashboardApp</description>
<description kind="short">TwitterDashboardApp</description>
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources>
<java java-vm-args="-Djava.security.policy=applet.policy" version="1.5+"/>
<jar href="file:/C:/Developement/TwitterDashboardApp/dist/TwitterDashboardApp.jar" download="eager" main="true"/>
<jar href="file:/C:/Developement/TwitterDashboardApp/dist/lib/twitter4j-core-2.1.7-SNAPSHOT.jar" download="eager" main="false"/>
</resources>
<applet-desc name="TwitterDashboardApp" main-class="TwitterApplet" documentbase="file:/C:/Developement/TwitterDashboardApp/dist/launch.html" width="300" height="300"/>
</jnlp> ]
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19720
    
  10

The error message says that the jars in the applet weren't signed by the same certificate.

From your XML it looks like there are two jars.

So, the obvious question: Did you sign both of those jars with the same certificate? IE says that you didn't. And your post fails to provide any details about that.
Tom Price
Greenhorn

Joined: Nov 09, 2010
Posts: 3
Both of the Jar files were signed automatically by NetBeans, which was acheived by selecting the self sign option - Unless I have misunderstood this.
Sorry for not being clearer initially.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: certificate error
 
It's not a secret anymore!