Can't find a service provider for "smtp" or "imap" or address type "rfc822"

  • Share
  • Share

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.

JAVA-Mail , , ,

  1. admin
    March 20th, 2009 at 10:28 | #1

    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.

  1. No trackbacks yet.