tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From albrecht andrzejewski <albrecht.andrzejew...@ema.fr>
Subject RE: get a strange cast error with using the tomcat mail ressource
Date Mon, 12 Feb 2007 22:20:31 GMT
Quoting "Caldarale, Charles R" <Chuck.Caldarale@unisys.com>:

>> 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 explaining this.

> 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.

Yes, that's was the mistake (i reinstalled my application with my own  
bad notes...). I will try to have a better look to the doc the next  
time. Thx!

----------------------------------------------------
Ce message a ete envoye par le serveur IMP de l'EMA.



---------------------------------------------------------------------
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