Cannot Use Javamail Getting Javax.Mail.Nosuchproviderexception Errors (Doc ID 1294226.1)

Last updated on JULY 17, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Information in this document applies to any platform.

*** Checked for relevance on 17-Jul-2017 ***

Symptoms

Custom java mail implementation using javax.mail related classes errors at runtime after upgrade to 11g. 

The java mail API functionality was enabled by loading mail.jar and activation.jar into the database.

Errors raised include:


javax.mail.NoSuchProviderException: No provider for Address type: rfc822

and/or

javax.mail.NoSuchProviderException: No provider for smtp

Changes

Database upgrade.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms