I am getting the following exception while trying to send an attachment email using Java mail API. The code runs locally using jetty server.
org.netbeans.modules.viewmodel.TreeModelNode@1f42ccb[Name=, displayName=e] NestedServletException org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.LinkageError: loader constraint violation: when resolving method "javax.mail.internet.MimeBodyPart.setDataHandler(Ljavax/activation/DataHandler;)V" the class loader (instance of org/mortbay/jetty/webapp/WebAppClassLoader) of the current class, org/springframework/mail/javamail/MimeMessageHelper, and the class loader (instance of org/codehaus/classworlds/RealmClassLoader) for resolved class, javax/mail/internet/MimeBodyPart, have different Class objects for the type javax/activation/DataHandler used in the signature