【转】Attachment support&nb…

来源:互联网 发布:在哪里注册淘宝账号 编辑:程序博客网 时间:2024/05/01 06:58
Unableto find required classes (javax.activation.DataHandler andjavax.mail.internet.MimeMultipart). Attachment support isdisabled解决方案

错误原因: 
需要mail.jar和activation.jar。

Solution: 
Web Services Required Jars Download Instructions 
http://www.eclipse.org/webtools/wst/components/ws/download_instructions_for_jars.html

解决办法: 
1) 下载javamail和jaf,解压出mail.jar和activation.jar 
http://java.sun.com/products/javamail/downloads/index.html 
http://java.sun.com/products/javabeans/glasgow/jaf.html#download 

2) 把mail.jar和activation.jar放到%AXIS_HOME%\WEB-INF\lib目录下 
3) 将.jar文件添加到%CLASSPATH% 
说明: 
这个是可以忽略的。不过以后构建web services都要用到的,还是添加上的好。 
参考:http://www.ogsadai.org.uk/documentation/ogsadai-wsi-2.1/doc/wsi/FAQ.html 
This is a warning message that can safely be ignored. It isdisplayed when Axis has been deployed without an optional JAR. Anoptional JAR is one that allows Axis to support a particular pieceof functionalty but is not required for general use. Please referto the Axis documentation for more details.

备注: 
一篇很好的jars下载指南: 
Web ServicesRequired Jars Download Instructions

Axis指南: 
Guide to buildingAxis