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 [mailto:[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 supporting
AES.

 

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]

Reply via email to