Thanks so much for the reply, Ian! I have verified the java.security file and it is setup exactly as per your response. I was using the AES algorithm, and tried DES, TripleDE; however, all throw the NoSuchAlgorithm, Cannot find any provider supporting XXX.
Does Phoenix, or James, define a security policy, or modify the classpath such that the Java security providers are not found? I do have my JAVA_HOME variable set to the appropriate JDK. TIA, Jeremy ----- Original Message ----- From: Ian Huynh <[EMAIL PROTECTED]> Date: Friday, June 27, 2003 10:07 am Subject: RE: Help: James 2.1.3 and java.security.NoSuchAlgorithmException > Sounds like the security provider is not availabe to James. > > check JAVA_HOME\jre\lib\security , file java.security > and make sure that your provider (AES) is listed in > security.provider section > Preferrably near the top > > security.provider.1=sun.security.provider.Sun > security.provider.2=com.sun.net.ssl.internal.ssl.Provider > security.provider.3=com.sun.rsajca.Provider > security.provider.4=com.sun.crypto.provider.SunJCE > security.provider.5=sun.security.jgss.SunProvider > > I recall also that if u are using JDK 1.4.x or later and using > high strength > encryption, it may also fail to load the correct provider. You > can fix this > by replacing local_policy.jar and US_export_policy.jar in the same > dir with > the high strength ones on sun site > > > > > -----Original Message----- > From: Jeremy Torres [EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 10:53 PM > To: [EMAIL PROTECTED] > Subject: Help: James 2.1.3 and java.security.NoSuchAlgorithmException > > > Hello, all. I have looked for hours trying to find the answer, so > I was > hoping someone could help. > > > > Problem Description: > > I have a custom Mailet that is decrypting some cipher text. > However, I get > the following exception: > > > > java.security.NoSuchAlgorithmException: Cannot find any provider > supportingAES. > > > > The same decryption code works when run from the command line > (pointing to > the same JAVA_HOME). > > > > Is there a security policy file somewhere in James/Phoenix that > needs to be > modified? > > > > TIA, > > > > Jeremy > > > > > > Software Used: > > James version 2.1.3 > > OS's tried: WinXp and Linux > > Java Versions tried: 1.4.1 and 1.4.2 > > > > > ------------------------------------------------------------------- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]