Hi again,

I found some additional information that might be of interest to you:

The JavaBeans Activation Framework is included with Java SE 6, so 
activation.jar is only needed for older versions.

It is allowed to include mail.jar with Taverna. See: 
http://java.sun.com/products/javamail/FAQ.html#free

To support MTOM attachments, the smaller mailapi.jar, which has no 
service providers, suffices.

Are there any reasons not to include this library with a next release of 
Taverna?

Looking forward to hearing from you,

Carsten


Carsten Byrman wrote:
> 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
>   


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

Reply via email to