Quoting "Caldarale, Charles R" <[EMAIL PROTECTED]>:
java.lang.ClassCastException: javax.mail.Session cannot be cast to
javax.mail.Session
at utils.MailHelper.sendMail(MailHelper.java:36)
This would indicate you've got the javax.mail.Session class in multiple
places.
Thank you for ex
> From: albrecht andrzejewski [mailto:[EMAIL PROTECTED]
> Subject: get a strange cast error with using the tomcat mail ressource
>
> I have the following error that i really dislike :
>
> java.lang.ClassCastException: javax.mail.Session cannot be cast to
> javax.mail.Session
> at util
this is what I currently use in web.xml
/**/
MySession
javax.mail.Session
Container
/CODE***/
import java.util.*;
import javax.mail.*;
import javax.naming.*;
/**
* Method used to login to the mail host.