随笔-20  评论-89  文章-1  trackbacks-0
[slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled
2006年4月27日 刘涛LiuTao.PRC@gmail.com

错误原因:
需要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
或者我提供了一个rar包:包含mail.jar action.jar
download:mail.jar and activation.jar
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 is displayed when Axis has been deployed without an optional JAR. An optional JAR is one that allows Axis to support a particular piece of functionalty but is not required for general use. Please refer to the Axis documentation for more details.

备注:
一篇很好的jars下载指南:Web Services Required Jars Download Instructions
Axis指南:Guide to building Axis
posted on 2006-04-27 11:44 夜舞重金属 阅读(27471) 评论(15)  编辑 收藏 引用 所属分类: 网格(Grid)

评论:
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2006-09-18 09:21 | WS-newer
WS初学者,谢谢搂主的帖子!帮了大忙了~  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2006-11-30 10:24 | Javen Wong
呵呵,顶!  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2007-06-10 21:49 | Thierry
哈哈,一年之后,谢谢刘兄!  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2007-06-14 16:50 | d
初学,还不知道把文件放在哪个目录下,见笑。(Tomcat5,IDK 1.5)  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2007-06-15 09:48 | wform
@d
%AXIS_HOME%\WEB-INF\lib
也就是你自己的AXIS安装目录里面对应的lib目录下。  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2007-07-09 17:06 | 凌观生
我还是不能,操作应该正确的,但就是显示总是:代码如下
import javax.xml.rpc.ParameterMode;

import javax.xml.rpc.encoding.XMLType;

import org.apache.axis.client.Call;

import org.apache.axis.client.Service;

public class Client {

public static void main(String[] args) throws Exception {

String endpoint = "http://61.164.53.250/LZL_SMS_Service.dll";
//String endpoint = "http://61.164.53.250/LZL_SMS_Service.dll/?";

Service service = new Service();

Call call = (Call) service.createCall();

call.setTargetEndpointAddress(new java.net.URL(endpoint));

call.setOperationName("SubmitShortMessage");

call.addParameter("UserName", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("UserPW", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("AtTime", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("SourceAddr", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("DestAddr", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("Content", XMLType.XSD_STRING, ParameterMode.IN);

call.addParameter("ServiceID", XMLType.XSD_INT, ParameterMode.IN);

call.setReturnType(XMLType.XSD_INT);

Integer ret = (Integer) call.invoke(new Object[] { new String("ling"), new String("password"),new String

("19:20:20"),new String("source"),new String("dest"),new String("content"),new Integer(3)});

System.out.println("The value of webservice return is :" + ret);

}

}
  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2007-08-01 21:24 | gdfsg
fgsdgfd
gsddf231231  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2007-11-07 15:13 | zhuge
Thank you sir!  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2008-02-13 06:49 | Buddy
谢谢~~~~~~~~~你太牛了~~~!!!!!!  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled[未登录] 2008-03-27 10:58 | smile
我刚试过,警告信息没有了,太感谢了!  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2010-09-13 18:16 | KatiePatel27
Various people in all countries get the <a href="http://bestfinance-blog.com/topics/mortgage-loans">mortgage loans</a> from various banks, because this is comfortable and fast.   回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2011-07-08 11:51 | 狼王爷
谢谢前辈了,你的文章很好,刚好用上,谢谢,这篇文章转到我的博客了,通知您一下,哈哈,  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2011-08-26 18:46 | forum profile service
Some people create their blogs knowing nothing just about linkbuilding. Therefore, their websites have not high ranking. These folks do not understand that forum profiles services can resolve this kind of issue!   回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2011-10-10 11:20 | aa
谢谢 解决了  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2012-01-06 19:48 | Logo design
Your posts are helpful and informative as always. Thanks very much.
  回复  更多评论
  
# re: [slove]Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled 2012-06-28 21:23 | custom essay
Order term papers essays from expert academic writers. So if you don’t know how to write your paper, you only need to use the following link and get reliable term paper writing services.  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理