Mail xwiki 12.1 - jetty - problem with sending

I have fresh xwiki 12.1 with new version of JETTY. I configured mail by Administer wiki. When I try to send mail I get a message:

I use script Example 1 from
https://extensions.xwiki.org/xwiki/bin/view/Extension/Mail%20Sender%20API

Authentication works, becasuse if I provide wrong pass I get message

image

openjdk version "11.0.6" 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)

Any ideas how to configure mail?

Works now :slight_smile:

OK, I have deleted mail folder from JETTY lib.

Hi. See https://jira.xwiki.org/browse/XWIKI-17092

The issue is a bug in Jetty on Java 11. We have put a workaround in XWiki 12.2 which has just been released today :wink:

FYI the workaround we have put is: https://github.com/xwiki/xwiki-platform/blob/b07002b7bb8754176b102708da9f182c60d5d66b/xwiki-platform-core/xwiki-platform-web/src/main/webapp/WEB-INF/jetty-web.xml#L37