[ 
https://issues.apache.org/jira/browse/CXF-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494085#comment-13494085
 ] 

Daniel Kulp commented on CXF-4616:
----------------------------------


Can I ask one more question for you to investigate:

CXF attachment support requires that the class 
javax.mail.internet.InternetHeaders is found on the classpath.  Without a mail 
jar (geronimo or the oracle version), any idea where that class is coming from 
in your case?

In our WHICH-JARS file, we specifically state that geronimo-javamail (or sun 
equivalent) is a REQUIRED jar.   I'm mostly curious where the InternetHeaders 
class is coming from if there isn't a mail jar there.  


                
> When creating DataContentHandler, defaultCommandMap should be considered.
> -------------------------------------------------------------------------
>
>                 Key: CXF-4616
>                 URL: https://issues.apache.org/jira/browse/CXF-4616
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.6.3
>            Reporter: Jinhua Wang
>         Attachments: AttachmentUtil.java.patch, AttachmentUtilTest.java, 
> AttachmentUtilWithoutAttachmentPartTest.java, EnhancedMailcapCommandMap.java
>
>
> When creating DataContentHandler, null may be returned from CXF's static 
> CommandMap. DefaultCommandMap from *CommandMap.getDefaultCommandMap()* could 
> also be used to create DataContentHandler. 
> Because in RI implementation,xxx.*saaj.soap.AttachmentPartImpl*, 
> Some static statement would add specific content handler to default 
> CommandMap.
> {code}
> CommandMap localCommandMap = CommandMap.getDefaultCommandMap();
> localMailcapCommandMap.addMailcap("text/xml" + str + 
> "xxx.saaj.soap.XmlDataContentHandler");
> {code}

--
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

Reply via email to