continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <>
Subject [jira] Commented: (CONTINUUM-1842) Migration to Spring mail sender
Date Wed, 24 Sep 2008 22:23:45 GMT


Olivier Lamy commented on CONTINUUM-1842:

I can't remove the plexus-mail dependency (it has to be done in redback too).
If I override the current mailSender with :
  <bean id="mailSession" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:comp/env/mail/Session">
  <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="session" ref="mailSession"/>
This works for continuum mail notification but not for redback registration :

Caused by: org.springframework.beans.factory.BeanCreationException: Error creati
ng bean with name 'mailer': FactoryBean threw exception on object creation; nest
ed exception is org.springframework.beans.TypeMismatchException: Failed to conve
rt value of type [org.springframework.mail.javamail.JavaMailSenderImpl] to requi
red type [org.codehaus.plexus.mailsender.MailSender]; nested exception is java.l
ang.IllegalArgumentException: Cannot convert value of type [org.springframework.
mail.javamail.JavaMailSenderImpl] to required type [org.codehaus.plexus.mailsend
er.MailSender]: no matching editors or conversion strategy found

> Migration to Spring mail sender 
> --------------------------------
>                 Key: CONTINUUM-1842
>                 URL:
>             Project: Continuum
>          Issue Type: Improvement
>          Components: Notifier - Mail
>    Affects Versions: 1.1
>            Reporter: Olivier Lamy
>            Assignee: Olivier Lamy
>             Fix For: 1.2.1
> Remove usage of plexus-mail-sender to Spring JavaMailSender
> See related [thread|]

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message