Apache Roller: Email Setup

I was having a problem getting my apache roller distribution to send emails out of it. I was getting the following error message in my roller.log file.

ERROR 2007-11-24 19:59:23,670 ApplicationDispatcher:invoke - Servlet.service() for servlet CommentServlet threw exception
java.lang.NoClassDefFoundError: javax/activation/DataSource
        at org.apache.roller.weblogger.util.MailUtil.sendMessage(MailUtil.java:593)

This message was happening because the the Roller application was running into problems authenticating to my smtp server setup. After hitting my head on the keyboard for a while, trying out every possible configuration imaginable, I discovered that the activation.jar was missing from my common/lib directory in Tomcat. After putting the activation.jar in this location emails were being sent out without a issue.

Well I know that this was probably a simple problem, but those are always the ones that seem like the hardest to fix.

Posted on Nov 26, 2007 by Mike Jennings in Java | 0 Comments | Permalink



Post a Comment:
  • HTML Syntax: Allowed