[ https://issues.apache.org/jira/browse/CLEREZZA-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152780#comment-13152780 ]
Reto Bachmann-Gmür commented on CLEREZZA-656: --------------------------------------------- javax.activation is currently exported by the system bundle, it is required by several bundles: zz>val sbs = for (b <- bs; if {val ep = b.getHeaders.get("Import-Package"); (ep != null) && ep.toString.contains("javax.activation")}) yield b sbs: Array[org.osgi.framework.Bundle] = Array(org.apache.clerezza.triaxrs [4], org.apache.clerezza.platform.mail [68], org.apache.clerezza.platform.xhtml2html [89], org.wymiwyg.wrhapi [131], org.wymiwyg.commons-core [132]) I'm not sure if its a good idea to have two bundles exporting javax.activation. Is the version that comes with javax.mail newer than the one that is part of j2se? > Correct handling of javax.mail and javax.activation in OSGI environnement > ------------------------------------------------------------------------- > > Key: CLEREZZA-656 > URL: https://issues.apache.org/jira/browse/CLEREZZA-656 > Project: Clerezza > Issue Type: Bug > Reporter: Florent ANDRE > Labels: ext-javax-mail > Fix For: 0.2-incubating > > Attachments: export-activation-for-datahandler.patch, > ext-javax-mail-osgi.patch > > > In OSGI environnement, mail sending [1] or parsing [2] don't work well. > This problems are due to Classloader issue in javax.activation (that try to > get resources in javax.mail with ClassLoader.getRessource ([3]) > [1] : http://thecarlhall.wordpress.com/2009/10/27/javamail-in-osgi/ > [2] : http://old.nabble.com/JavaMail-and-Felix-td32000484.html, > http://nostacktrace.com/dev/2010/6/24/sending-multipart-mail-in-an-osgi-container.html > [3] : > http://kenai.com/projects/javamail/forums/forum/topics/13123-multipart-alternative#p27947 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira