Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-1646

Notification Connector JDK > 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • ManifoldCF 2.16
    • ManifoldCF 2.17
    • Email connector
    • 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:

      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...

       

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            wolfingeru Uwe Wolfinger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: