[ https://issues.apache.org/jira/browse/KARAF-5989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on KARAF-5989 started by Freeman Fang. ------------------------------------------- > Error while sending email because of javax.activation > ----------------------------------------------------- > > Key: KARAF-5989 > URL: https://issues.apache.org/jira/browse/KARAF-5989 > Project: Karaf > Issue Type: Bug > Components: karaf > Affects Versions: 4.2.1 > Reporter: Nicolas Dutertry > Assignee: Freeman Fang > Priority: Major > Fix For: 4.2.2 > > > It is not possible to send email in Karaf 4.2 with javax.mail API. When an > email is sent, this exception is raised: > {code:java} > javax.mail.MessagingException: IOException while sending message; > nested exception is: > javax.activation.UnsupportedDataTypeException: no object DCH for MIME > type multipart/mixed;{code} > I’ve found that it is because the Activation Framework (javax.activation) is > not OSGI compliant. In the previous Karaf version (4.1) a servicemix > implementation of the Activation Framework was included but it is not the > case anymore. > The solution to have a working Activation Framework is to remove > javax.activation references in jre.properties and to install the bundle > org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0. > For the future Karaf 4.2.2 can you please: > * Remove javax.activation from jre.properties > * Remove activation-1.1.1.jar from directory lib/boot > * Let the user install > org.apache.servicemix.specs/org.apache.servicemix.specs.activation-api-1.1/2.9.0 > if needed -- This message was sent by Atlassian JIRA (v7.6.3#76005)