Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
ManifoldCF 2.16
-
None
Description
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:
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...