Neither will this error be overcome.

in pom

<dependency> <groupId>com.sun.mail</groupId> <artifactId>javax.mail</artifactId> <version>1.6.0</version> </dependency> 

I tried different versions, I make WAR. I throw in Tomcot on the laptop, everything works, the mail is sent. I throw the same cooker on a server with freshly installed ubuntu 16, java 9, jetty 9, I do not want to send letters, I get an error

 org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: javax/activation/DataHandler at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1006) ~[spring-webmvc-5.0.1.RELEASE.jar:5.0.1.RELEASE] 

This lib also has WEB-INF / lib / activation-1.1.jar

What does it swear (already the brain is eaten)?

I installed Tomcat9 on the server, everything is robs, Jetty will have to be abandoned due to incomprehensible bugs.

    0