continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "LAMY Olivier" <Olivier.L...@accor.com>
Subject RE: Continuum Emails
Date Thu, 09 Aug 2007 22:39:51 GMT
Yep. 

-----Message d'origine-----
De : Morgovsky, Alexander (US - Glen Mills) [mailto:amorgovsky@deloitte.com] 
Envoyé : vendredi 10 août 2007 00:36
À : continuum-users@maven.apache.org
Objet : RE: Continuum Emails

Does this mean that I should put the whole <component> node into plexus.xml?

<component>
      <role>org.codehaus.plexus.mailsender.MailSender</role>
      <implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMailSender</implementation>
      <configuration>
        <jndiSessionName>java:comp/env/mail/Session</jndiSessionName>
		<smtp-host></smtp-host>
        <smtp-port></smtp-port>
      </configuration>
    </component> 

-----Original Message-----
From: Emmanuel Venisse [mailto:emmanuel@venisse.net]
Sent: Thursday, August 09, 2007 5:18 PM
To: continuum-users@maven.apache.org
Subject: Re: Continuum Emails

the jndi conf must be done in conf/plexus.xml

Morgovsky, Alexander (US - Glen Mills) a écrit :
> I am using Continuum 1.1-alpha-2.  I have noticed that my Continuum 
> instance is not sending out emails.  In the logs I found the error:
> 
> [pool-1-thread-1] ERROR
> org.apache.maven.continuum.notification.ContinuumNotificationDispatcher:
> default  - Error while trying to use the mailnotifier.
> org.codehaus.plexus.notification.NotificationException: Exception 
> while sending message.
> 	at
> org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sen
> dM
> essage(MailContinuumNotifier.java:415)
> 	at
> org.apache.maven.continuum.notification.mail.MailContinuumNotifier.bui
> ld
> Complete(MailContinuumNotifier.java:319)
> 	at
> org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sen
> dN
> otification(MailContinuumNotifier.java:211)
> 	at
> org.apache.maven.continuum.notification.DefaultContinuumNotificationDi
> sp
> atcher.sendNotification(DefaultContinuumNotificationDispatcher.java:198)
> 	at
> org.apache.maven.continuum.notification.DefaultContinuumNotificationDi
> sp
> atcher.sendNotification(DefaultContinuumNotificationDispatcher.java:150)
> 	at
> org.apache.maven.continuum.notification.DefaultContinuumNotificationDi
> sp
> atcher.buildComplete(DefaultContinuumNotificationDispatcher.java:103)
> 	at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.endB
> ui
> ld(DefaultBuildController.java:219)
> 	at
> org.apache.maven.continuum.buildcontroller.DefaultBuildController.buil
> d(
> DefaultBuildController.java:173)
> 	at
> org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.ex
> ec
> uteTask(BuildProjectTaskExecutor.java:50)
> 	at
> org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$Exec
> ut
> orRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
> 	at
> edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapt
> er
> .call(Executors.java:442)
> 	at
> edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTa
> sk
> .java:176)
> 	at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
> er
> .runTask(ThreadPoolExecutor.java:665)
> 	at
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Work
> er
> .run(ThreadPoolExecutor.java:690)
> 	at java.lang.Thread.run(Thread.java:534)
> Caused by: org.codehaus.plexus.mailsender.MailSenderException: Error 
> while sending the message.
> 	at
> org.codehaus.plexus.mailsender.javamail.AbstractJavamailMailSender.sen
> d(
> AbstractJavamailMailSender.java:219)
> 	at
> org.apache.maven.continuum.notification.mail.MailContinuumNotifier.sen
> dM
> essage(MailContinuumNotifier.java:411)
> 	... 14 more
> 
> I configured the
> continuum-1.1-alpha-2\apps\continuum\webapp\WEB-INF\classes\META-INF\p
> le xus\application.xml with the following:
> 
> <component>
>       <role>org.codehaus.plexus.mailsender.MailSender</role>
>  
> <implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMa
> il
> Sender</implementation>
>       <configuration>
> 	
> <jndiSessionName>java:comp/env/mail/Session</jndiSessionName>
> 	        <smtp-host>a.b.c.d</smtp-host>
>         	        <smtp-port>e</smtp-port>
>       </configuration>
> </component>
> 
> Could someone please explain what I am doing wrong?
> 
> Thank you. 
> 
> 
> This message (including any attachments) contains confidential information intended for
a specific individual and purpose, and is protected by law.  If you are not the intended recipient,
you should delete this message. 
> 
> 
> Any disclosure, copying, or distribution of this message, or the 
> taking of any action based on it, is strictly prohibited. [v.E.1]
> 


This e-mail, any attachments and the information contained therein ("this message") are confidential
and intended solely for the use of the addressee(s). If you have received this message in
error please send it back to the sender and delete it. Unauthorized publication, use, dissemination
or disclosure of this message, either in whole or in part is strictly prohibited.
--------------------------------------------------------------------------------------------------------------
Ce message électronique et tous les fichiers joints ainsi que  les informations contenues
dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement
à l'usage de la  personne à laquelle ils sont adressés. Si vous avez reçu ce message par
erreur, merci  de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication,
totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées
de ce message, sont interdites.
-------------------------------------------------------------------------------------------------------------


Mime
View raw message