Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

weblogic.resource.MailSession: NoSuchProviderException

Status
Not open for further replies.

sunn97

Programmer
Feb 15, 2002
3
US
I am trying to get the e-mail functionality in my application using weblogic.properties:

weblogic.resource.MailSession.email= mail.from=abc@co.com, mail.host=XXXX

Error:
javax.mail.NoSuchProviderException: No provider for smtp

I believe j2ee.jar in weblogic.class.path should have worked, it didn't then I tried to put following jars in the class path:
smtp.jar;mailapi.jar;activation.jar;mail.jar;

In code:
Provider[] providers = session.getProviders()

providers.length is 0
It's not working.
Is there any weblogic configuration I am missing?

JNDI: weblogic.log shows
<I> <EJB> Bound mail session to JNDI name &quot;email&quot;

In code:
Session session = (Session) ic.lookup( &quot;email&quot; );

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top