> -----Original Message----- > From: Lageson,Thomas M [mailto:[EMAIL PROTECTED] > Sent: 31 January 2005 23:01 > To: Maven Users List > Subject: ubjerjar and security certs - help needed? > > I am using the uberjar plugin to generate my runnable jar. > However, my code makes calls to the code in > sunjce_provider.jar, US_export_policy.jar and local_policy.jar. > > I am getting the following error (abbreviated): > ...ExceptionInInitializerError: java.lang.SecurityException: > Cannot set up certs for trusted CAs: > java.security.PrivilegedActionException > <<java.net.MalformedURLException: no protocol: > US_export_policy.jar>>... > > I have tried putting the cacerts, javapolicy and javasecurity > files such that they are included in the final ubjerjar, but > I can't seem to get around the error. > > How can I get my uberjar to find the certs when I run it? > > Your help is appreciated. Thank you. > > - Tom >
This is what I understand: The javax.crypto code in JDK1.4+ (or in the sun jce) requires that the providers be in signed jar files. Signed jar files are difficult to get hold of, as the keypair must be issued by sun. If you can't do that, then you need to replace the jce implementation. I seem to remember that there is an OS project to do this, but can't remember the name. You will need to mess about with -Xbootclasspath anyhow if you do this, which may or may not work with uberjar. In short, you might be stuck, I think, but I might be wrong. Cheers James --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
