geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan <xhh...@gmail.com>
Subject Where to set the img/jpeg handler ?
Date Thu, 26 May 2011 12:35:04 GMT
Hi, while investigating a JAX-WS failure case, it uses DataHandler to
configure a attachment. After some investigation, I find that it is
caused by image/jpeg handler is not registered. In the past, we
configured it in the META-INF/mailcap file in the geronimo-javamail
component.
--->
text/plain;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.TextPlainHandler
text/html;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.TextHtmlHandler
text/xml;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.TextXmlHandler

## These are not implemented in the reference implementation because
the required support
## is not available on server JVMs.
## image/gif;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.ImageGifHandler
## image/jpeg;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.ImageJpegHandler
## image/jpg;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.ImageJpegHandler

multipart/*;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.MultipartHandler
message/rfc822;;
x-java-content-handler=org.apache.geronimo.javamail.handlers.RFC822MessageHandler
<---
But they are commented for keeping compatible with the RI
implementation in https://issues.apache.org/jira/browse/GERONIMO-5415.
I think that the solution is to place a META-INF/mailcap file
somewhere to make the img handlers are registered, but the question is
what is the correct place ? I guess that in the JavaMail plugin is a
place, while it might be a litter strange to make the Axis2 plugin
depends on the JavaMail plugin. Thoughts ?
Thanks.

-- 
Ivan

Mime
View raw message