Hi, I have developed a JAX-WS web service that returns a zip file as a binary attachment using MTOM. It works very well on my computer: Taverna 2.0 recognizes the MIME type and allows you to save the result without having to specify a .zip filename extension. To my surprise, however, other users get the following exception:
java.lang.RuntimeException: No support for attachments On a clean install I was able to reproduce the error. Taverna logs the following warning on startup: WARN 2009-07-09 10:21:09,154 org.apache.axis.utils.JavaUtils (JavaUtils:1308) Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Apparently, I have the required classes on my path, but most other users will not by default. They can solve the problem by copying activation.jar and mail.jar to TAVERNA_HOME\lib, assuming they know where to find them, but i.m.h.o. that is too much to ask and will seriously affect acceptance of the service. To new users like me, Taverna suggests that attachments are supported out of the box: the graphical design view, for example, displays an attachmentList output port to work with. Furthermore, Java maps all but a few mime types (e.g. image/*) to javax.activation.DataHandler. So, wouldn't it be a good idea to distribute the required classes to support attachments with a next release - that is version 2.1 I hope - of Taverna? Carsten ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/taverna-mailing-lists/ Developers Guide: http://www.mygrid.org.uk/tools/developer-information
