Hi,
I stumbled upon Continuum yesterday, and I really appreciate its
simplicity and features. I've setup cruisecontrol and looked at anthill
before, and those took a lot of work to get those setup. The
quick-start web interface in Continuum is great.
I'm running into a problem in configuring an SMTP server for mail
notification. Has anyone successfully changed the SMTP server to
something other than the default localhost? I've tried two things,
neither has worked. The error log is attached, showing that Continuum
is still looking to send mail through the localhost.
First, I tried setting system properties for JavaMail in wrapper.conf,
as follows:
# Java Additional Parameters
wrapper.java.additional.1=-Dclassworlds.conf=../../conf/classworlds.conf
wrapper.java.additional.2=-Djava.io.temp=../../temp
wrapper.java.additional.3=-Dplexus.core=../../core
wrapper.java.additional.4=-Dplexus.home=../..
[EMAIL PROTECTED]
wrapper.java.additional.6=-Dmail.host=my.smtp.host.edu
wrapper.java.additional.7=-Dmail.debug=true
wrapper.java.additional.8=-Dmail.smtp.host=my.smtp.host.edu
wrapper.java.additional.9=-Dplexus.system.path="%PATH%"
wrapper.java.additional.9.stripquotes=TRUE
Second, I tried modifying apps/continuum/conf/application.xml and
changing the <smtp-host> element from localhost to my SMTP host, as
shown below:
<component>
<role>org.codehaus.plexus.mailsender.MailSender</role>
<implementation>org.codehaus.plexus.mailsender.javamail.JavamailMailSender</implementation>
<configuration>
<smtp-host>my.smtp.host.edu</smtp-host>
<smtp-port>25</smtp-port>
<sslProvider>com.sun.net.ssl.internal.ssl.Provider</sslProvider>
<!--
<username>mylogin</username>
<password>mypassword</password>
<sslMode>true</sslMode>
-->
</configuration>
</component>
See the attached wrapper.log for the error message.
Any help would be appreciated. Once this is fixed, I intend to advocate
the use of Continuum on a very large open source project. We haven't
used a continuous-build system on our project so far simply because the
ones we've tried so far were too complicated and frustrating to
configure and use. But Continuum might be the one...
Thanks,
-Jon Andersen
University of Michigan
------------------------------------------------------------------------
INFO | jvm 1 | 2006/06/02 13:09:16 | 2006-06-02 13:09:16,002 [Thread-2] INFO
Notifier:mail - Sending message: From '"[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>'.
INFO | jvm 1 | 2006/06/02 13:09:16 | 2006-06-02 13:09:16,002 [Thread-2] INFO
Notifier:mail - Recipient: To '<[EMAIL PROTECTED]>'.
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: JavaMail version 1.3.2
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: java.io.FileNotFoundException:
/home/janderse/j2sdk1.4.2_10/jre/lib/javamail.providers (No such file or
directory)
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: !anyLoaded
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: not loading resource:
/META-INF/javamail.providers
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: successfully loaded resource:
/META-INF/javamail.default.providers
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: Tables of loaded providers
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: Providers Listed By Class
Name:
{com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc]}
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: Providers Listed By Protocol:
{imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun
Microsystems, Inc],
imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun
Microsystems, Inc],
smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun
Microsystems, Inc],
pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun
Microsystems, Inc],
pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun
Microsystems, Inc],
smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]}
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: successfully loaded resource:
/META-INF/javamail.default.address.map
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: !anyLoaded
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: not loading resource:
/META-INF/javamail.address.map
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: java.io.FileNotFoundException:
/home/janderse/j2sdk1.4.2_10/jre/lib/javamail.address.map (No such file or
directory)
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: setDebug: JavaMail version
1.3.2
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG SMTP: useEhlo true, useAuth
false
INFO | jvm 1 | 2006/06/02 13:09:16 | DEBUG SMTP: trying to connect to host
"localhost", port 25, isSSL false
INFO | jvm 1 | 2006/06/02 13:09:16 | 2006-06-02 13:09:16,292 [Thread-2]
ERROR ContinuumNotificationDispatcher - Error while trying to use the
mailnotifier.
INFO | jvm 1 | 2006/06/02 13:09:16 |
org.codehaus.plexus.notification.NotificationException: Exception while sending
message.
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:403)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.buildComplete(MailContinuumNotifier.java:307)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendNotification(MailContinuumNotifier.java:202)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.sendNotification(DefaultContinuumNotificationDispatcher.java:173)INFO
| jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.notification.DefaultContinuumNotificationDispatcher.buildComplete(DefaultContinuumNotificationDispatcher.java:96)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:378)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:47)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
java.lang.Thread.run(Thread.java:534)
INFO | jvm 1 | 2006/06/02 13:09:16 | Caused by:
org.codehaus.plexus.mailsender.MailSenderException: Error while sending mail.
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.codehaus.plexus.mailsender.javamail.JavamailMailSender.send(JavamailMailSender.java:217)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sendMessage(MailContinuumNotifier.java:399)INFO
| jvm 1 | 2006/06/02 13:09:16 | ... 8 more
INFO | jvm 1 | 2006/06/02 13:09:16 | Caused by:
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port:
25;
INFO | jvm 1 | 2006/06/02 13:09:16 | nested exception is:
INFO | jvm 1 | 2006/06/02 13:09:16 | java.net.ConnectException:
Connection refusedINFO | jvm 1 | 2006/06/02 13:09:16 | at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1213)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:311)INFO |
jvm 1 | 2006/06/02 13:09:16 | at
javax.mail.Service.connect(Service.java:233)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
javax.mail.Service.connect(Service.java:134)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
javax.mail.Service.connect(Service.java:86)INFO | jvm 1 | 2006/06/02
13:09:16 | at
com.sun.mail.smtp.SMTPTransport.connect(SMTPTransport.java:144)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
javax.mail.Transport.send0(Transport.java:150)
INFO | jvm 1 | 2006/06/02 13:09:16 | at
javax.mail.Transport.send(Transport.java:80)INFO | jvm 1 | 2006/06/02
13:09:16 | at
org.codehaus.plexus.mailsender.javamail.JavamailMailSender.send(JavamailMailSender.java:213)
INFO | jvm 1 | 2006/06/02 13:09:16 | ... 9 more