RE: get a strange cast error with using the tomcat mail ressource

2007-02-12 Thread albrecht andrzejewski
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

RE: get a strange cast error with using the tomcat mail ressource

2007-02-11 Thread Caldarale, Charles R
> 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.

Re: get a strange cast error with using the tomcat mail ressource

2007-02-11 Thread Martin Gainty
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

get a strange cast error with using the tomcat mail ressource

2007-02-11 Thread albrecht andrzejewski
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