javax.mail.NoSuchProviderException: No provider for smtpAt first I thought perhaps there was some problem with our mail setup - sendmail worked fine AND I could ping the smtp server, so that wasn't the issue. I had read somewhere after a lot of searching about clashes between different mail.jars. In particular, I found the symlink to javamail.jar in $TOMCAT_HOME/common/lib. I simply removed this link and then emailing from XTF worked perfectly.
UPDATE: Al Cornish helpfully added that Tomcat 5 also needed to be restarted for the change to take effect.
Thank you for this post - I can honestly say that you saved me hours of effort.
ReplyDeleteMy only addition: After removing the symbolic link as you describe, I found that I had to stop and start Tomcat5 to successfully mail citations from XTF.
Sincerely,
Al Cornish
running UC XTF at URL http://ec2-184-72-132-152.compute-1.amazonaws.com:8080/xtf/search
Hey Al,
ReplyDeleteGot sidetracked from this blog for some time...only just read your comment. Thanks for the additional info, and glad it helped you.
Cheers,
Gary