Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17085

NoClassDefFoundError: javax/activation/DataSource on Java 11+

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 12.1
    • Tested on Java 11, Java 13
    • Unknown
    • N/A
    • N/A

    Description

      For ex in org.xwiki.sharepage.test.ui.SharePageIT.shareByEmailWhenNoFromAddress test:

      06:58:06.350 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
      06:58:06.350 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
      06:58:06.350 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
      06:58:06.350 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
      06:58:06.350 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDOUT: 	... 113 common frames omitted
      06:58:06.427 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDERR: 2020-02-28 06:58:06.424:WARN:oejs.HttpChannel:qtp1729199940-13: /xwiki/bin/get/SharePageIT/shareByEmailWhenNoFromAddress
      06:58:06.428 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDERR: java.lang.NoClassDefFoundError: javax/activation/DataSource
      06:58:06.428 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDERR: 	at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.createMimeMessage(MailSenderPlugin.java:227)
      06:58:06.428 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDERR: 	at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMails(MailSenderPlugin.java:653)
      06:58:06.428 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDERR: 	at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:600)
      06:58:06.428 [tc-okhttp-stream-1162967881] INFO  o.x.t.d.i.j.s.ServletContainerExecutor - STDERR: 	at com.xpn.xwiki.plugin.mailsender.MailSenderPlugin.sendMail(MailSenderPlugin.java:586)
      

      Attachments

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: