ClassCastException gnu.mail.handler.TextPlain when Sending Test Mail due to GNU Java
Symptoms
An error has occurred Configuring a Server for Outgoing Mail:
java.lang.ClassCastException: gnu.mail.handler.TextPlain
at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:496)
Cause
The gnu version of JavaMail and the Sun version of JavaMail are both in the class path.
Resolution
Install the javamail package and remove the gnumailpackage.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.