Ajouter un commentaire

maxlegrand

J'ai réussi à régler quelques soucis mais il en reste encore ...
J'ai signé toutes les archives mais arrivé au jar sqljdbc.jar, j'obtiens une erreur

Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\pierre\Desktop\lib>jarsigner -keystore monStore -signe
djar sSQLJDBC.jar sqljdbc.jar signature
Enter Passphrase for keystore: *****
jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compres
sed size (expected 6093 but got 6065 bytes)

Comment corrigé ça ?

Donc j'ai essayé de lancer le JWS sans avoir signé ce jar et j'obtiens :
Erreur : Les ressources jar n'ont pas été signés à l'aide du même certificat :

Fichier de lancement :

<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost/Local-Site-A/" href="test.jnlp">

	<information>
		<title>Mon Logiciel par JNLP</title>
		<vendor>Pierre Sylvestre</vendor>
		
	</information>

	<security>
		<all-permissions/>
	</security>

	<resources>		
		<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
		<jar href="http://localhost/Local-Site-A/lib/sTest.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sFreeChart.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sUnit.jar"/">
		<jar href="http://localhost/Local-Site-A/lib/sText.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sFreeChartExperimental.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sServlet.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sCommon.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sFreeChartSWT.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sSWT2d.jar"/>
		<jar href="http://localhost/Local-Site-A/lib/sqljdbc.jar"/>
	</resources>
	
	<resources os="Windows">
		<nativelib href="sAuth.jar"/>		
	</resources>

	<application-desc main-class="MonMenu" />

</jnlp>

Exception :

JNLPException[category: Erreur dans le fichier de lancement : Exception: null : LaunchDesc: 
<jnlp spec="1.0+" codebase="http://localhost/Local-Site-A/" href="http://localhost/Local-Site-A/test.jnlp">
  <information>
    <title>Mon Logiciel par JNLP</title>
    <vendor>Pierre Sylvestre</vendor>
    <homepage href="null"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <update check="timeout" policy="always"/>
  <resources>
    <java href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
    <jar href="http://localhost/Local-Site-A/lib/sTest.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sFreeChart.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sUnit.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sFreeChartExperimental.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sServlet.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sCommon.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sFreeChartSWT.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sSWT2d.jar" download="eager" main="false"/>
    <jar href="http://localhost/Local-Site-A/lib/sqljdbc.jar" download="eager" main="false"/>
    <nativelib href="http://localhost/Local-Site-A/sAuth.jar" download="eager" main="false"/>
  </resources>
  <application-desc main-class="MonMenu"/>
</jnlp> ]
	at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
	at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
	at com.sun.javaws.Launcher.launch(Unknown Source)
	at com.sun.javaws.Main.launchApp(Unknown Source)
	at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
	at com.sun.javaws.Main$1.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Filtered HTML

Plain text

CAPTCHA
Cette question permet de vérifier que vous n'êtes pas un robot spammeur :-)
 Y   Y  RRRR   III  N   N  DDD  
Y Y R R I NN N D D
Y RRRR I N N N D D
Y R R I N NN D D
Y R RR III N N DDD