在启动Tomcat的时候,Console中提示下面错误信息:
- Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
错误原因是没有activation.jar和mail.jar两个jar包,去官网进行下载。
mail.jar的下载地址
https://www.oracle.com/technetwork/java/javamail/javamail145-1904579.html
activation.jar下载地址
https://www.oracle.com/technetwork/java/jaf11-139815.html
然后,将下载下来的两个文件解压,将activation.jar和mail.jar放入tomcat安装路径下的tomcat\webapps\axis\WEB-INF\lib中,即可。