[
https://issues.jboss.org/browse/AS7-1375?page=com.atlassian.jira.plugin.s...
]
Tomaz Cerar commented on AS7-1375:
----------------------------------
I have same problem, but in my case it goes for another module (mail subsystem) and no
matter how I defined dependencies it does not work.
as i found out the problem is that activation api is trying to load something that is in
javax.mail and that does not work as there is no dependency to javax.mail, even if i add
it as dependency it does not work (not sure if circular dependency is allowed at all)
the only way I was able to make it work was a ugly ugly hack with adding mail-xxx.jar to
javax.activation.api module as resource in that case it works like a charm :)
here
http://forum.springsource.org/showthread.php?69180-Problems-sending-MIME-...
it is a good explanation where the main problem is (javax libs itself) and what can be
done
probably the best fix would be patching EE api jars..
UnsupportedDataTypeException sending email
-------------------------------------------
Key: AS7-1375
URL:
https://issues.jboss.org/browse/AS7-1375
Project: Application Server 7
Issue Type: Bug
Environment: jdk-u26, jboss-as-7.1.0.Alpha1-SNAPSHOT(07/22/2011)
Reporter: Tomáš Remeš
Fix For: 7.0.1.Final
Seam 3 send mail example fails on:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type
multipart/mixed;
boundary="----=_Part_1_340486764.1311336438303"
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:905)
[activation-1.1.1.jar:1.1.1]
at javax.activation.DataHandler.writeTo(DataHandler.java:330)
[activation-1.1.1.jar:1.1.1]
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1476)
[mail-1.4.4.jar:1.4.4]
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1772)
[mail-1.4.4.jar:1.4.4]
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
[mail-1.4.4.jar:1.4.4]
... 42 more
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira