tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: get a strange cast error with using the tomcat mail ressource
Date Mon, 12 Feb 2007 00:39:05 GMT
> From: albrecht andrzejewski [mailto:albrecht.andrzejewski@ema.fr] 
> 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 utils.MailHelper.sendMail(MailHelper.java:36)

This would indicate you've got the javax.mail.Session class in multiple
places.  The activation.jar and mail.jar files should go into common/lib
only, not in the app's WEB-INF/lib.  Check the docs for configuring
mail:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html#JavaMa
il%20Sessions

See the note in item 4.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message