Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled xml xml

Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled


In order to fix the javax.activation.DataHandler issue you must add the JavaBeans Activation Framework activation.jar in your classpath.

In order to fix the javax.mail.internet.mimeMultipart issue you must add the Java Mail API mail.jar in your classpath.

The warning messages printed in your console shows that the above jars are not in the classpath.


Only one jar (mail.jar) is enough to fix this problem. This jar should present in your class path.


Unfortunately, wsdl is still in use:( You can solve this warn via adding dependencies below.

    <dependency>        <groupId>javax.mail</groupId>        <artifactId>mail</artifactId>        <version>1.4.7</version>    </dependency>    <dependency>        <groupId>javax.activation</groupId>        <artifactId>activation</artifactId>        <version>1.1.1</version>    </dependency>