This week's giveaway is in the JDBC forum.
We're giving away four copies of Java Database Connections & Transactions (e-book only) and have Marco Behler on-line!
See this thread for details.
Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Signed Jar Problems to deploy in adf project  RSS feed

 
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.


 
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.
 
Forget this weirdo. You guys wanna see something really neat? I just have to take off my shoe .... (hint: it's a tiny ad)
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!