> From: albrecht andrzejewski [mailto:albrecht.andrzejewski@(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 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@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)