Page 6 of 6

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 12:51 pm
by jcompagner
jcompagner wrote:try

java -jar signtester.jar

first
that will give you the options


oeps thats true, default it just verifies
just give a argument with it:

java -jar signtester.jar x

and then it will explain what you can call

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 2:09 pm
by tgs
Johan,

I have now signed the jar files by my own generated kestore how you explained.
When I run the signtester.jar again, all the Verifying dirs are signed.
Than I have deleted the server cache and also the .servoy folder and Java cache files on the client side. Made a restart of the server, but still the same error while launching the smart client:

Error: JAR resources in JNLP file are not signed by the same certificate

What is wrong?

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 2:20 pm
by mboegem
Hi Thomas,

can you please post the details of the 'JAR resources in JNLP file are not signed by the same certificate' error here?
This gives good information which jars are involved here.

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 2:30 pm
by tgs
This are the resources of the jnlp file:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?><jnlp codebase="http://192.168.1.11:8080" href="/servoy-client/plugins/servoy_jasperreports.jar.jnlp" spec="1.0+">
   <information>
      <title>Servoy Client Plugins</title>
      <vendor>Servoy and Others</vendor>
   </information>
   <resources>
      <jar download="eager" href="/plugins/servoy_jasperreports.jar" version="1274455126000"/>
      <jar download="eager" href="/lib/commons-collections.jar" part="commons-collections" version="1270212958000"/>
         <package name="org.apache.commons.collections.*" part="commons-collections" recursive="true"/>
      <jar download="eager" href="/lib/commons-logging.jar" part="commons-logging" version="1270212963000"/>
         <package name="org.apache.commons.logging.*" part="commons-logging" recursive="true"/>
      <jar download="eager" href="/lib/commons-dbcp.jar" part="commons-dbcp" version="1270212959000"/>
         <package name="org.apache.commons.dbcp.*" part="commons-dbcp" recursive="true"/>
         <package name="org.apache.commons.jocl.*" part="commons-dbcp" recursive="true"/>
      <jar download="eager" href="/plugins/servoy_jasperreports/jasperreports-3.7.3.jar" version="1276082068000"/>
      <jar download="eager" href="/plugins/servoy_jasperreports/commons-beanutils-1.8.0.jar" part="commons-beanutils" version="1274454356000"/>
         <package name="org.apache.commons.beanutils.*" part="commons-beanutils" recursive="true"/>
      <jar download="eager" href="/plugins/servoy_jasperreports/commons-digester-1.7.jar" part="commons-digester" version="1274454356000"/>
         <package name="org.apache.commons.digester.*" part="commons-digester" recursive="true"/>
      <jar download="eager" href="/plugins/servoy_jasperreports/iText-2.1.7.jar" part="itext" version="1274454358000"/>
         <package name="com.lowagie.*" part="itext" recursive="true"/>
      <jar download="eager" href="/plugins/servoy_jasperreports/jdt-compiler-3.1.1.jar" part="jdt-compiler" version="1274454362000"/>
         <package name="org.eclipse.jdt.*" part="jdt-compiler" recursive="true"/>
      <jar download="eager" href="/plugins/servoy_jasperreports/poi-3.5-FINAL-20090928.jar" part="poi" version="1274454364000"/>
         <package name="org.apache.poi.*" part="poi" recursive="true"/>
   </resources>
   <component-desc/>
   <security>
      <all-permissions/>
   </security>
</jnlp>

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 2:54 pm
by jcompagner
did you use the overwrite parameter of the signtester?

You really have to resign everything, you still seem to have mixed signing in jnlps

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 3:07 pm
by tgs
The command line was:

$ java -jar signtester.jar mykeystore <mypassword> MyPlugins [overwrite]

Before I have generated the mykeystore file with the keytool.

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 3:13 pm
by ptalbot
tgs wrote:The command line was:

$ java -jar signtester.jar mykeystore <mypassword> MyPlugins [overwrite]

Before I have generated the mykeystore file with the keytool.

You should get rid of the [ and ] (square brackets) they are here in the help just to indicate that it is an optional parameter...
Then you will see that for each jar encoutered the tool will output that it is unsigned, then it should tell you that it is signed.

Takes a while to do them all, but you should be OK then...

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 3:37 pm
by tgs
ptalbot wrote:You should get rid of the [ and ] (square brackets) they are here in the help just to indicate that it is an optional parameter...
Then you will see that for each jar encoutered the tool will output that it is unsigned, then it should tell you that it is signed.

Takes a while to do them all, but you should be OK then...

Thank you Patrick!

I'm little deranged because struggeling in signing - unsigning - signing ..... :oops:

The output is now different then the try before. I'm currently launching the smart client... and cross my fingers that it will work now.

Edit: It's working!

Re: Plugin and Beans with Java 6 update 19

PostPosted: Wed Jun 09, 2010 3:56 pm
by ptalbot
Yes, we should all send a big thanks to Larry Ellison for all this headache.

Glad it worked in the end anyway!