Jnlp erro

Tenho uma aplicação e quero usar com web start, outras aplicações rodam tranquilo e essa, não tem jeito. Alguém poderia me ajudar??

*** todos os jars foram assinados ***

GENERAL

An error occurred while launching/running the application.

Title: Sistema de Jornalismo TV -  Java Web Start
Vendor: OAM Informatica
Category: Launch File Error

JAR resources in JNLP file are not signed by same certificate

LOUNCH FILE

<?xml version="1.0" encoding="utf-8"?>
<jnlp
     spec="1.0+"
     codebase="http://localhost:8080/sysnews"
     href="sysnews.jnlp">

<information>
    <title>Sistema de Jornalismo TV -  Java Web Start</title>
    <vendor>OAM Informatica</vendor>
    <homepage href="http://localhost:8080/sysnews/index.html"/>
    <description>Sistema de Jornalismo TV -  Java Web Start</description>
    <description kind="short">Sysnews JWS</description>
    <icon href="images/CaixaGlobo.gif"/>
    <offline-allowed/>
</information>

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


<resources>
    <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="SysNews.jar"/>
    <jar href="commons-beanutils-1.5.jar"/>
    <jar href="commons-collections-2.1.jar"/>
    <jar href="commons-digester-1.7.jar"/>
    <jar href="commons-javaflow-20060411.jar"/>
    <jar href="commons-logging-1.0.2.jar"/>
    <jar href="commons-logging-api-1.0.2.jar"/>
    <jar href="jasperreports-1.2.2.jar"/>
    <jar href="jcalendar.jar"/>
    <jar href="jdbc2_0-stdext.jar"/>
    <jar href="jh.jar"/>
    <jar href="jhall.jar"/>
    <jar href="help.jar"/>
    <jar href="jhbasic.jar"/>
    <jar href="jsearch.jar"/>
    <jar href="jtds-1.0.2.jar"/>
    <jar href="liquidlnf.jar"/>
    <jar href="looks-2.0.1.jar"/>
    <jar href="synthetica.jar"/>
    <jar href="syntheticaBlackStar.jar"/>
    <jar href="syntheticaGreenDream.jar"/>


</resources>

<application-desc main-class="com.oam.controler.ControleJanelaPrincipal"/>
</jnlp>

EXCEPTION


JNLPException[category: Launch File Error : Exception: null : LaunchDesc: 
<jnlp spec="1.0+" codebase="http://localhost:8080/sysnews/" href="http://localhost:8080/sysnews/sysnews.jnlp">
  <information>
    <title>Sistema de Jornalismo TV -  Java Web Start</title>
    <vendor>OAM Informatica</vendor>
    <homepage href="http://localhost:8080/sysnews/index.html"/>
    <description>Sistema de Jornalismo TV -  Java Web Start</description>
    <description kind="short">Sysnews JWS</description>
    <icon href="http://localhost:8080/sysnews/images/CaixaGlobo.gif" kind="default"/>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.3+"/>
    <jar href="http://localhost:8080/sysnews/SysNews.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/commons-beanutils-1.5.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/commons-collections-2.1.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/commons-digester-1.7.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/commons-javaflow-20060411.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/commons-logging-1.0.2.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/commons-logging-api-1.0.2.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jasperreports-1.2.2.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jcalendar.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jdbc2_0-stdext.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jh.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jhall.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/help.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jhbasic.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jsearch.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/jtds-1.0.2.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/liquidlnf.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/looks-2.0.1.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/synthetica.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/syntheticaBlackStar.jar" download="eager" main="false"/>
    <jar href="http://localhost:8080/sysnews/syntheticaGreenDream.jar" download="eager" main="false"/>
  </resources>
  <application-desc main-class="com.oam.controler.ControleJanelaPrincipal"/>
</jnlp> ]
	at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(Unknown Source)
	at com.sun.javaws.LaunchDownload.checkSignedResources(Unknown Source)
	at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
	at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
	at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
	at com.sun.javaws.Launcher.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

Fiz um script para assinar

keytool -genkey -keystore myKeystore -alias myself 
jarsigner -keystore myKeystore SysNews.jar myself
jarsigner -keystore myKeystore commons-beanutils-1.5.jar myself 
jarsigner -keystore myKeystore commons-collections-2.1.jar myself 
jarsigner -keystore myKeystore commons-digester-1.7.jar myself 
jarsigner -keystore myKeystore commons-javaflow-20060411.jar myself 
jarsigner -keystore myKeystore commons-logging-1.0.2.jar myself 
jarsigner -keystore myKeystore commons-logging-api-1.0.2.jar myself 
jarsigner -keystore myKeystore jasperreports-1.2.2.jar myself 
jarsigner -keystore myKeystore help.jar myself
jarsigner -keystore myKeystore jcalendar.jar myself 
jarsigner -keystore myKeystore jdbc2_0-stdext.jar myself 
jarsigner -keystore myKeystore jh.jar myself 
jarsigner -keystore myKeystore jhall.jar myself 
jarsigner -keystore myKeystore jhbasic.jar myself 
jarsigner -keystore myKeystore jsearch.jar myself 
jarsigner -keystore myKeystore jtds-1.0.2.jar myself 
jarsigner -keystore myKeystore liquidlnf.jar myself 
jarsigner -keystore myKeystore looks-2.0.1.jar myself 
jarsigner -keystore myKeystore synthetica.jar myself 
jarsigner -keystore myKeystore syntheticaBlackStar.jar myself 
jarsigner -keystore myKeystore syntheticaGreenDream.jar myself 

Arquivo JNLP

<?xml version="1.0" encoding="utf-8"?>
<jnlp
     spec="1.0+"
     codebase="http://localhost:8080/sysnews"
     href="sysnews.jnlp">

<information>
    <title>Sistema de Jornalismo TV -  Java Web Start</title>
    <vendor>OAM Informatica</vendor>
    <homepage href="http://localhost:8080/sysnews/index.html"/>
    <description>Sistema de Jornalismo TV -  Java Web Start</description>
    <description kind="short">Sysnews JWS</description>
    <icon href="images/CaixaGlobo.gif"/>
    <offline-allowed/>
</information>

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


<resources>
    <j2se version="1.3+" href="http://java.sun.com/products/autodl/j2se"/>
    <jar href="SysNews.jar"/>
    <jar href="commons-beanutils-1.5.jar"/>
    <jar href="commons-collections-2.1.jar"/>
    <jar href="commons-digester-1.7.jar"/>
    <jar href="commons-javaflow-20060411.jar"/>
    <jar href="commons-logging-1.0.2.jar"/>
    <jar href="commons-logging-api-1.0.2.jar"/>
    <jar href="jasperreports-1.2.2.jar"/>
    <jar href="jcalendar.jar"/>
    <jar href="jdbc2_0-stdext.jar"/>
    <jar href="jh.jar"/>
    <jar href="jhall.jar"/>
    <jar href="help.jar"/>
    <jar href="jhbasic.jar"/>
    <jar href="jsearch.jar"/>
    <jar href="jtds-1.0.2.jar"/>
    <jar href="liquidlnf.jar"/>
    <jar href="looks-2.0.1.jar"/>
    <jar href="synthetica.jar"/>
    <jar href="syntheticaBlackStar.jar"/>
    <jar href="syntheticaGreenDream.jar"/>


</resources>

<application-desc main-class="com.oam.controler.ControleJanelaPrincipal"/>
</jnlp>

Arquivo javaws.log

<?xml version="1.0" encoding="windows-1252" standalone="no"?>
<!DOCTYPE log SYSTEM "logger.dtd">
<log>
<record>
  <date>2006-12-19T14:35:10</date>
  <millis>1166549710953</millis>
  <sequence>0</sequence>
  <logger>com.sun.deploy</logger>
  <level>FINE</level>
  <class>com.sun.deploy.util.LoggerTraceListener</class>
  <method>print</method>
  <thread>10</thread>
  <message>#### Java Web Start Error:
</message>
</record>
<record>
  <date>2006-12-19T14:35:10</date>
  <millis>1166549710953</millis>
  <sequence>1</sequence>
  <logger>com.sun.deploy</logger>
  <level>FINE</level>
  <class>com.sun.deploy.util.LoggerTraceListener</class>
  <method>print</method>
  <thread>10</thread>
  <message>#### JAR resources in JNLP file are not signed by same certificate
</message>
</record>
</log>

Olá colega tive o mesmo problema mas resolvi assim: o erro é :
“JAR resources in JNLP file are not signed by same certificate”

Primeiramente vc terá que assinar todos os .jar que estão no jnlp
Todos com o mesmo certificado…
Mas antes terá que retirar o certificado de cada .jar para isto entre no .jar
com um programa de zip como o TUGZip na pasta MATE-INF apaque os arquivos com extensão *.SF e *.DSA
E assine os .jar com o mesmo certificado que sua aplicação

eu consegui assim…

:slight_smile:

Valeu!!!

Realmente era isso, tinha alguns jars já assinados. Removi os arquivos *.SF e *.DSA. Assinei todos outra vez e funcionou… Obrigado

“Desenterrando um post… ^^”

Bom… estou com o mesmo problema citado acima…
E vou tentar resolver assinando novamente os .jar…

Mas apesar de ler algumas coisas sobre o keytool, estou com algumas dúvidas…

Tenho uma aplicação Client/Server que usando o JBoss faz atualização de alguns arquivos.jar… conforme as atualizações…

E de um tempo para ka, começou a reclamar… falando que o keyStore não eh o mesmo…

Não entendi porque, jah que usei sempre o mesmo em todas as compilações… após ler alguns artigos, vi que na geração no keyStore tem um tempo de validade, mas n sei se eh isso, pois em outros clientes funciona numa boa… =/

O que pode ser ?

E se alguém ai tiver um tutorial fácil de como mexer com o keyTool… eu agradeço…
Se bem que estou procurando por um agora… ^^

Vlw !

Opa…

Achei no forum o link oficial com os comandos e dicas de como usar o keytool e jarsigner…

Vou brincar aki e ver se realmente entendi como trabalhar com keyTool… ^^

Se alguem tiver um exemplo passo-a-passo de como testar e tudo mais… agradeço…

Aki esta o link com o material:
http://java.sun.com/docs/books/tutorial/security/toolsign/index.html

Fui !