I have figured out how to resolve this issue. The $JAVA_HOME/jre/lib/ext directory needs to be explicitly added to the James startup scripts (in this case, allowing the Phoenix runtime access to the JCE Provider, etc.
Here it goes.... For Windows: Edit the run.bat At the end of the batch file, look for the -Djava.ext.dirs. Add the your %JAVA_HOME%\jre\lib\ext to the property. For example: -Djava.ext.dirs=%PHOENIX_HOME%\lib;%JAVA_HOME%\jre\lib\ext" For UNIX: Locate the JVM_OPTS variable and set the following: JVM_OPTS="-Djava.ext.dirs=$PHOENIX_HOME/lib:$JAVA_HOME/jre/lib/ext" -----Original Message----- From: Ian Huynh [mailto:[EMAIL PROTECTED] Sent: Friday, June 27, 2003 10:07 AM To: James Users List 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 [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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]