continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert O <robert.ofs...@obos.no>
Subject Re: Continuum Emails
Date Wed, 26 Sep 2007 07:47:41 GMT

Hi!

Right now I'm at my job and don't have the stacktrace, but from what I can
remember it's the same as posted in the first post of this thread (I will
anyway post it later today). 

I have not setup any smtp server, because I thought maybe it came along with
continuum (as a part/component of plexus or something)?

But if I understand you correctly what you are saying is that I need a local
smtp-server that I configure Continuum to use, a 3rd party service? (If that
is the case, do you know any good smtp server i should use?)

Robert





Emmanuel Venisse wrote:
> 
> Do you have a stacktrace or something in logs?
> 
> Do you use a local smtp server or a remote smtp server and is it required
> a known email address for the sender?
> 
> Emmanuel
> 
> Robert O a écrit :
>> Hi
>> 
>> I've tried to follow your explanation on how to configure the
>> mailnotifier,
>> but I can't get it to work. Just keeps getting the errormessage:  Error
>> while trying to use the mailnotifier.
>> 
>> I thought the mailnotifier would work more or less out of the box when
>> installing Continuum? Do i need to install a 3rd party mail-server or
>> something?
>> 
>> I'm using the continuum-1.1-beta-2 locally on Windows XP. Continuum runs
>> with the bundled jetty server, and I thought that or the plexus thing
>> (which
>> I don't know what is :) would provide me with some mail-functionality 
>> 
>> I haven't found much helpful documentation on the topic, just some hints
>> on
>> the official Continuum website. Maybe someone knows some good resources?
>> 
>> Thanks
>> 
>> Robert
>> 
>> 
>> 
>> amorgovsky wrote:
>>> Thank you for your help. 
>>>
>>> -----Original Message-----
>>> From: Emmanuel Venisse [mailto:emmanuel@venisse.net] 
>>> Sent: Friday, August 10, 2007 2:50 AM
>>> To: continuum-users@maven.apache.org
>>> Subject: Re: Continuum Emails
>>>
>>> No.
>>>
>>> In conf/plexus.xml, you must have something like that:
>>>
>>>          <resources>
>>>            <!--
>>>                 Mail Session
>>>            -->
>>>            <resource>
>>>              <name>mail/Session</name>
>>>              <type>javax.mail.Session</type>
>>>              <properties>
>>>                <property>
>>>                  <name>mail.smtp.host</name>
>>>                  <value>localhost</value>
>>>                </property>
>>>                <property>
>>>                  <name>mail.smtp.port</name>
>>>                  <value>25</value>
>>>                </property>
>>>              </properties>
>>>            </resource>
>>>
>>> and in application.xml, you must keep the component declaration like it
>>> iwas when you installed Continuum:
>>>
>>>      <component>
>>>        <role>org.codehaus.plexus.mailsender.MailSender</role>
>>>       
>>> <implementation>org.codehaus.plexus.mailsender.javamail.JndiJavamailMailSender</implementation>
>>>        <configuration>
>>>          <jndiSessionName>java:comp/env/mail/Session</jndiSessionName>
>>>        </configuration>
>>>      </component>
>>>
>>> Emmanuel
>>>
>>> LAMY Olivier a écrit :
>>>> 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.
>>>> -------------------------------------------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Continuum-Emails-tf4245281.html#a12895727
Sent from the Continuum - Users mailing list archive at Nabble.com.


Mime
View raw message