Plugin and Beans with Java 6 update 19

Questions and answers on developing, deploying and using plugins and JavaBeans

Re: Plugin and Beans with Java 6 update 19

Postby ROCLASI » Wed Jun 02, 2010 4:24 pm

Thomas Parry wrote:I also had same message for the Spellcheck pro plugin. Then I went into the jnlp file for it and noticed that the version= part was not the recommended version="%%version%%" so I manually changed them and then that exception seemed to go away. I checked the jnlp for the it2be-tools and it is fine. So it is one or more jar files in the plugin sub-folder that it does not like.

What happens when you clear your cache first on the client machine? I know Johan fixed an issue the jnlp version strings in 5.1.3 but I am not sure if this ever got into 3.5.12.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Plugin and Beans with Java 6 update 19

Postby Thomas Parry » Wed Jun 02, 2010 4:34 pm

Patrick,
the signtester now does not crash.

It still shows lots of not verified jar files.

No change in the exception when attempting to download the smart client.
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Plugin and Beans with Java 6 update 19

Postby Thomas Parry » Wed Jun 02, 2010 4:40 pm

I am clearing the cache before every restart of the server.
No changes - still stops on the first "not verified" jar file.

As an experiment I could omit the it2be-tools and try again - I suspect that it will fail on the next not verified jar file.

(My client is not exactly happy to be down at this moment!) :oops:
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Plugin and Beans with Java 6 update 19

Postby ptalbot » Wed Jun 02, 2010 4:41 pm

Thomas Parry wrote:Patrick,
the signtester now does not crash.

It still shows lots of not verified jar files.

No change in the exception when attempting to download the smart client.

You can't use it on if server or developer is running!!!

The jars are locked so they can't be modified/signed, I guess that's what is happening to you.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Plugin and Beans with Java 6 update 19

Postby ptalbot » Wed Jun 02, 2010 4:43 pm

Thomas Parry wrote:I am clearing the cache before every restart of the server.
No changes - still stops on the first "not verified" jar file.

As an experiment I could omit the it2be-tools and try again - I suspect that it will fail on the next not verified jar file.

(My client is not exactly happy to be down at this moment!) :oops:


You could also clear the server cache (/application_server/server/work/catalina/yourhost/)...
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Plugin and Beans with Java 6 update 19

Postby Thomas Parry » Wed Jun 02, 2010 5:04 pm

I always run the signtester with the server shutdown.

As a last resort I wacked the offending it2be-tools suite of files and folders then downloaded the complete latest set and re-installed it.
Interestingly now these files are verified with the signtester tool. So my method of updating the plugins appears to be flawed to say the least!

Now downloading the smart client completes properly.

So I will assume this was the correct remedial action.

Thanks for the advice from all.
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Plugin and Beans with Java 6 update 19

Postby tgs » Wed Jun 09, 2010 11:15 am

I have replaced the jasperreports-3.7.1.jar by the version 3.7.3 file on my Servoy 5.1.4 application server.
Launching the Smart Client from Developer I get no error messages, but when launching the Smart Client from the application_server, I get the error:

<<Unable to launch the application>>
<<Error: Found unsigned entry in resource: (http://xxx.xxx.xxx.xxx:8080/plugins/ser ... -3.7.3.jar, 1275474554000)>>

Of course, I have changed the setting in the jnlp file.

If I run now the signtester.jar the unsigned jasperreports-3.7.3.jar will be dedected. I have signed it like Johan has discribed it in a previous post on this topic and the tool returns all files are signed. But while launching the Smart Client again, I get the error message:

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

What can I do to get it work?
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Plugin and Beans with Java 6 update 19

Postby Harjo » Wed Jun 09, 2010 11:25 am

are you sure, you use the latest signtester.jar from Servoy-stuff site??

clear your cache, (and what I mostly do, is clear the catalina cache folder also on the servert)
Harjo Kompagnie
ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Plugin and Beans with Java 6 update 19

Postby jcompagner » Wed Jun 09, 2010 11:38 am

where do you get jasperreports-3.7.3.jar from?

If you just download them from somewhere and dump it into the plugin. Then yes it has to be signed
But you cant sign that jar file with the same certificate as the original plugin is signed (thats servoy certificate)
So if you just update jars inside a plugin that is already signed by somebody else then you need to resign the whole plugin (so all the jars that the jnlp file of that plugin points to)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Plugin and Beans with Java 6 update 19

Postby tgs » Wed Jun 09, 2010 11:47 am

Harjo wrote:are you sure, you use the latest signtester.jar from Servoy-stuff site??

clear your cache, (and what I mostly do, is clear the catalina cache folder also on the servert)


Thanks Harjo!

I used the latest signtester.jar and cleared also the catalina cache, but Johan got it.
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Plugin and Beans with Java 6 update 19

Postby tgs » Wed Jun 09, 2010 11:50 am

jcompagner wrote:where do you get jasperreports-3.7.3.jar from?

If you just download them from somewhere and dump it into the plugin. Then yes it has to be signed
But you cant sign that jar file with the same certificate as the original plugin is signed (thats servoy certificate)
So if you just update jars inside a plugin that is already signed by somebody else then you need to resign the whole plugin (so all the jars that the jnlp file of that plugin points to)


Hi Johan,

I got the jasperreports-3.7.3.jar file from my iReport 3.7.3 installation. How do I resign the whole plugin?
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Plugin and Beans with Java 6 update 19

Postby jcompagner » Wed Jun 09, 2010 11:57 am

that you can also do with the latest signtester.jar from Mr Patrick..

http://forum.servoy.com/viewtopic.php?f ... 188#p74828
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Plugin and Beans with Java 6 update 19

Postby tgs » Wed Jun 09, 2010 12:27 pm

tgs wrote:
Harjo wrote:are you sure, you use the latest signtester.jar from Servoy-stuff site??

clear your cache, (and what I mostly do, is clear the catalina cache folder also on the servert)


Thanks Harjo!

I used the latest signtester.jar and cleared also the catalina cache, but Johan got it.


Hi Harjo,

actually I don't used the latest signtester.jar (I had Johan's vers.) :cry: . But now I have the right one from the Servoy-Stuff site!
Could you please post the correct command line incl. the 'overwrite' parameter? This would be very glad.
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

Re: Plugin and Beans with Java 6 update 19

Postby jcompagner » Wed Jun 09, 2010 12:37 pm

try

java -jar signtester.jar

first
that will give you the options
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8829
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Plugin and Beans with Java 6 update 19

Postby tgs » Wed Jun 09, 2010 12:48 pm

Ok, the output now in the termial is:

Verifiying dir: ./plugins/servoy_jasperreports/Applications/Servoy5/application_server/./plugins/servoy_jasperreports/jasperreports-3.7.3.jar didnt verify

All others are verified.

Do I run now the unsigner.jar and than sign again with the signtester.jar?
Thomas Schnaus
SAN Developer
yomotec GmbH
User avatar
tgs
 
Posts: 886
Joined: Wed Oct 04, 2006 12:05 pm
Location: Germany

PreviousNext

Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 6 guests