[ https://issues.apache.org/jira/browse/SLING-2835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Munteanu updated SLING-2835: ----------------------------------- Attachment: org.apache.sling.javax.activation.zip > Addition of OSGi-aware javax.activation bundle > ---------------------------------------------- > > Key: SLING-2835 > URL: https://issues.apache.org/jira/browse/SLING-2835 > Project: Sling > Issue Type: Improvement > Components: Extensions > Reporter: Robert Munteanu > Attachments: org.apache.sling.javax.activation.zip, > org.apache.sling.javax.activation.zip > > > Currently Sling exposes the javax.activation package using a system framework > extension. This works well for some use cases. However, it does not work well > with the official javax.mail bundle. The javax.mail bundle is now OSGi-aware, > but the classloading problems between javax.mail and javax.activation > persist. javax.activation tries to read a /META-INF/mailcap file from the > javamail jar and loads DataContentHandler classes from the javamail jar. > To prevent this problem from occuring I have created a javax.activation > bundle which provides a custom CommandMap implementation. This implementation > uses the foreign bundle's classloader ( e.g. javax.mail classloader ) to load > classes. This solves the classloading conflict between javax.mail and > javax.activation. > I will attach a zip archive of the maven project to the bundle as a > contribution. The file is named org.apache.sling.javax.activation.zip and has > the sha1sum cd4ad4279b5673a070d919a118d9aca571656f91 , md5sum > 68487bdca46ba47bce9947087bd659ea . -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira