Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Signed Jar Problems to deploy in adf project

 
Guillermo Diaz Solis
Greenhorn
Posts: 11
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Guys. I have a little problem... I bougth a certificate to sign my jars, if a deploy my applet in a html file with out framework, just html and js, the works great, I can call from javascript all public methods from the applet. The real problem is when I try to deploy the same signed jar on a adf project in Jdeveloper. Does not work at all and java execute some warnings and later applet is block, the message say something like "exist some jars signed and not signed" But Im sure that all jars are signed...

I got this:
applet console:
image

All jars are signed, dependencies too.


 
Dieter Quickfend
Bartender
Posts: 543
4
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't see any errors in your console output... where is the error message you're getting?
 
Guillermo Diaz Solis
Greenhorn
Posts: 11
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If all is well, the console should not display outputs, Just if a the jars need to be updated.

To be more explicit:

All jars are signed, and when I deploy the applet (using all deps and calling all publics members) from a index.html on apache server runs great! works good. All methods works great (accesing hard drive, using Bouncy castle libraries etc..)

When I deploy the same applet on a oracle adf project using jdeveloper works bad and the output is:

First some warnigns:
Says: some jars are signed and another are unsigned (Im really sure that are signed)
ImageWarnings
Some docs that I found: mixcode


Firefox output:
imageFireFoxOutput

This is how I sign the jars:

batch

The manifest:

ImageManifest

I cant understant what happend...

Thanks for Help.


 
Dieter Quickfend
Bartender
Posts: 543
4
Java Netbeans IDE Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's because your bouncycastle crypto jar is untrusted.

Check out this part: http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/HowToImplAProvider.html#JCEAuthTrust

and to add the crypto provider, check http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#Provider
Specifically using Security.addProvider().

Or you can add an entry in your policy file containing your crypto provider.
 
Guillermo Diaz Solis
Greenhorn
Posts: 11
Firefox Browser Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dieter Quickfend wrote:It's because your bouncycastle crypto jar is untrusted.

Check out this part: http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/HowToImplAProvider.html#JCEAuthTrust

and to add the crypto provider, check http://docs.oracle.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#Provider
Specifically using Security.addProvider().

Or you can add an entry in your policy file containing your crypto provider.


Thanks man! I solve the problem in another way, but thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic