Answer the question
In order to leave comments, you need to log in
Springm Java Mail and Jetty - where does NoClassDefFoundError: javax/activation/DataHandler come from?
No way to overcome this error.
in pom
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.0</version>
</dependency>
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]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question