Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

javax.mail.NoSuchProviderException: smtp

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Seems this is a common issue, unfortunately, I tried a bunch of things I found via search but no luck. I upgraded an application (including some jars) that was using javax.mail. The old version still works, but even with all the same code and parameters, the new version fails. The working version uses j2ee-1.3.1.jar, I've tried using that as well as mail.jar 1.4.2 and smtp.jar. I've dropped the default provider list in the /META-INF directory and no changes either. I've turned on debugging and here's the output of the failing verison:



And here's the output of the working version:



What else should I try?

Thanks!
 
Shawn Kuenzler
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I resolved the issue. I had to add both Activation.jar and Mail.jar to my classpath and remove all .class files from the javax/mail package within J2EE-1.3.1.jar that was also on the classpath. Not sure what caused the conflict.
 
reply
    Bookmark Topic Watch Topic
  • New Topic