Uwe Wolfinger created CONNECTORS-1646:
-----------------------------------------
Summary: Notification Connector JDK > 11
Key: CONNECTORS-1646
URL: https://issues.apache.org/jira/browse/CONNECTORS-1646
Project: ManifoldCF
Issue Type: Bug
Components: Email connector
Affects Versions: ManifoldCF 2.16
Reporter: Uwe Wolfinger
When running MCF with a JDK >=11 there is a problem with the Email notification
connector. Whenever it tries to send a mail, following error is tossed:
FATAL 2020-06-25T14:58:43,097 (Job reset thread) - Error tossed:
javax/activation/DataSource
java.lang.NoClassDefFoundError: javax/activation/DataSource
at
org.apache.manifoldcf.crawler.notifications.email.EmailSession.send(EmailSession.java:95)
~[?:?]
at
org.apache.manifoldcf.crawler.notifications.email.EmailConnector$SendThread.run(EmailConnector.java:963)
~[?:?]
Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
~[?:?]
at
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
~[?:?]
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ~[?:?]
... 2 more
this is because the activation jars are no longer part of the jdk:
[https://docs.oracle.com/en/java/javase/11/migrate/index.html#JSMIG-GUID-561005C1-12BB-455C-AD41-00455CAD23A6]
verified solution is to put
javax.activation-1.2.0.jar
and
javax.activation-api-1.2.0.jar
in the lib directory and add them to cp in jetty-options.env... and
options.env...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)