Can't find a service provider for "smtp" or "imap" or address type "rfc822"
March 20th, 2009
Applies to:
NA
Description:
Occurs when servlet can’t find JavaMail classes
Cause:
Usually this is because JavaMail can’t access the configuration files in mail.jar, possibly because of a security permission problem.
If You use JavaMail in an application which runs under a SecurityManager, make sure that You have granted necessary permissions.
Also make sure that you haven’t extracted the mail.jar contents; you should include the unmodified mail.jar file in the server’s CLASSPATH.