[basex-talk] EMail module and javax.activation.DataSource

2021-08-25 Thread dudz...@yahoo.com
Dear all,

I am trying to use a basex Email module 
http://files.basex.org/modules/org/basex/modules/email/EMail.jar. I downloaded 
a new basex instance (9.6 version) and added this jar to lib directory. Based 
on the xquery/email.xq file I created the following file:

import module namespace email = 'http://basex.org/modules/email/EMail';

let $mail :=
  
    myuser@machine-office
    myuser@machine-office
    localhost
    Hello!
    Enjoy
  
return
  email:send($mail)

While running the file I obtain:

Stopped at /home/myuser/Downloads/basex/file, 12/13:
[XPTY0004] javax.activation.DataSource. Caused by: 
org.basex.modules.email.EMail:send(element()).

What's the problem? Shouldn't I use this module?

BR


Re: [basex-talk] EMail module and javax.activation.DataSource

2021-08-25 Thread Omar Siam

Hello,

Are you using JDK 11 (or newer)? javax.activation is no longer part of 
the JDK but the jar is available separately.

I stumbled upon this in exist-db but maybe it is the same problem here?
So JDK 1.8 should work and adding the jar 
https://search.maven.org/remotecontent?filepath=javax/activation/activation/1.1.1/activation-1.1.1.jar 
to the lib or lib/custom folder should work to.


Best regards
Omar Siam

Am 25.08.2021 um 13:57 schrieb dudz...@yahoo.com:

Dear all,

I am trying to use a basex Email module 
http://files.basex.org/modules/org/basex/modules/email/EMail.jar. I downloaded 
a new basex instance (9.6 version) and added this jar to lib directory. Based 
on the xquery/email.xq file I created the following file:

import module namespace email = 'http://basex.org/modules/email/EMail';

let $mail :=
   
     myuser@machine-office
     myuser@machine-office
     localhost
     Hello!
     Enjoy
   
return
   email:send($mail)

While running the file I obtain:

Stopped at /home/myuser/Downloads/basex/file, 12/13:
[XPTY0004] javax.activation.DataSource. Caused by: 
org.basex.modules.email.EMail:send(element()).

What's the problem? Shouldn't I use this module?

BR



--
Mag. Ing. Omar Siam
Austrian Center for Digital Humanities and Cultural Heritage
Österreichische Akademie der Wissenschaften | Austrian Academy of Sciences
Stellvertretende Behindertenvertrauensperson | Deputy representative for 
disabled persons
Wohllebengasse 12-14, 1040 Wien, Österreich | Vienna, Austria
T: +43 1 51581-7295
omar.s...@oeaw.ac.at | www.oeaw.ac.at/acdh