11 November, 2010

XTF Bookbag Emailing Error

When attempting to email a bookbag with XTF, I was getting the following error:
javax.mail.NoSuchProviderException: No provider for smtp
At 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.

2 comments:

  1. Thank you for this post - I can honestly say that you saved me hours of effort.

    My 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

    ReplyDelete
  2. Hey Al,
    Got sidetracked from this blog for some time...only just read your comment. Thanks for the additional info, and glad it helped you.
    Cheers,
    Gary

    ReplyDelete