Hello,
Firstly, major apologies for taking so long to reply. Don't know what the
definitive answer is yet but I think it should support attachments out of
the box. It looks like T1 does and it ships the required jars so I think it
is an ommision on our part. There is probably nothing explicitly depending
on mailapi/activation so it has been forgotten about. We will get this
sorted for the next release -
http://www.mygrid.org.uk/dev/issues/browse/T2-708
Cheers,
Ian
Ian Dunlop
myGrid Team
School of Computer Science
University of Manchester
2009/7/24 Richard Holland <[email protected]>
> Hi guys - Carsten just demonstrated this problem to me in person.
>
> mailapi.jar is a requirement for the default download of Taverna when
> using attachmentList output from WSDL activities. It really doesn't work
> at all without it. This really should be an included JAR if possible as
> at least one element of default built-in Taverna 2.0 functionality
> depends on it.
>
> cheers,
> Richard
>
> On Mon, 2009-07-20 at 15:28 +0200, Carsten Byrman wrote:
> > 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
> --
> Richard Holland, BSc MBCS
> Operations and Delivery Director, Eagle Genomics Ltd
> T: +44 (0)1223 654481 ext 3 | E: [email protected]
> http://www.eaglegenomics.com/
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
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