I have only compiled the HEAD, but i think its because the mail block uses
mock objects to compile against because sun doesnt allow JAF to be
redistributed in the cocoon source.

cocoon-2.1-head\src\blocks\mail\mocks

To actually use the classes you will have to download the real JAF package.

Mvh Karl �ie

> Hi,
>
> I have flowscript that depends on a POJO that uses Javamail
> (javax.mail), and I'm getting a NoClassDefFoundError on
> javax.activation.DataSource from the javax.mail.internet.MimeMessage
> constructor.
>
> I'm puzzled, because the SendMailTransformer works just fine.  One of
> the mail block classes, MailMessageSender, even imports classes from
> javax.activation, so it couldn't have even compiled w/o those classes
> on the classpath.  But I can't find 'em anywhere in Cocoon/lib or
> anyplace else I thought would be on the classpath for the Cocoon build.
>
> I downloaded activation.jar from Sun's JAF site, and now it works just
> fine... but I'm not happy, because I don't understand what is going on
> :-/.
>
> Can anyone shed some light?
>
> Thanks a lot,
> �ml�
>
>

Reply via email to