aspose file tools*
The moose likes Applets and the fly likes Signed Jar Problems to deploy in adf project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Signed Jar Problems to deploy in adf project" Watch "Signed Jar Problems to deploy in adf project" New topic
Author

Signed Jar Problems to deploy in adf project

Guillermo Diaz Solis
Greenhorn

Joined: Dec 31, 2013
Posts: 11

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.



Oracle Certified Associate, Java SE 7 Programmer
Dieter Quickfend
Bartender

Joined: Aug 06, 2010
Posts: 543
    
    4

I don't see any errors in your console output... where is the error message you're getting?


Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Guillermo Diaz Solis
Greenhorn

Joined: Dec 31, 2013
Posts: 11

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

Joined: Aug 06, 2010
Posts: 543
    
    4

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

Joined: Dec 31, 2013
Posts: 11

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.
 
 
subject: Signed Jar Problems to deploy in adf project