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.Session > at util

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

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