警告: Unable to find required classes (javax.activation.DataHandler and javax.mail

在调试Axis1.4访问WebService服务时,出现以下警告:

警告: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

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

 

eclipse3.6\plugins下就有这两个jar包

javax.activation_1.1.0.jar

javax.mail_1.4.0.jar


解决办法:
1) 下载javamail和jaf,解压出mail.jar和activation.jar

  javamail

    http://www.oracle.com/technetwork/java/index-138643.html

    jafJavaBeans Activation Framework

     http://www.oracle.com/technetwork/java/javase/downloads/index-135046.html#download
2) 引用jar包
 
说明:
这个是可以忽略的。不过以后构建web services都要用到的,还是添加上的好。
 

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

你可能感兴趣的:(webservice,mail,activation)