Java Mail SMTP in JBoss-Tomcat


I was frustrated in getting the following error when trying to send an email in a web application running in JBoss:

noSuchProviderException: smtp

After hours of searching, it seems that others solved this problem by replacing jar files.

I solved my problem by removing activation.jar and mail.jar from my lib folder in the web app.

The app would then use the mail plugin in JBoss instead and it worked!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s