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.
nous vous signalons qu'il est strictement interdit
de le diffuser, de le distribuer ou de le reproduire.
- Original Message -
From: "albrecht andrzejewski" <[EMAIL PROTECTED]>
To:
Sent: Sunday, February 11, 2007 5:24 PM
Subject: get a strange cast error with using the
Hello all,
I hope i will not pollute the list, but i'm affraid of being faced
with a bug :-(
I have to send a mail with tomcat.
I followed the instructions of the tomcat documentation, corresponding
my version (5.5).
Using this code:
public static String sendMail(String destinataire, S