在接触WebService时值得收藏的一篇文章:

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

Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart)

有错误找到错误原因以及发现值得收藏的一篇文章,方便自己查找。

——————————————————————————————————

错误原因:
需要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

Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart)相关推荐

  1. java.lang.NoClassDefFoundError: javax/activation/DataSource

    文章目录 1.降低JDK版本 2.添加某些用户使用 mailR 包所需的 jar 文件 3.总结 1.降低JDK版本 我之前安装了Java8的笔记本电脑上工作正常, 我刚刚得到了一台全新的台式电脑,安 ...

  2. 解决:NoClassDefFoundError: javax/activation/DataSource

    在运行一个有关邮件发送的项目是报这个错误: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: j ...

  3. javax.activation:activation:jar:1.0.2

    下载 http://www.downcc.com/soft/299156.html 丢掉本地仓库E:\maven repository\javax\activation\activation\1.0. ...

  4. Unable to import required dependencies: pytz: No module named ‘pytz‘ ,dateutil: No module named【已解决】

    问题描述 执行程序时候报错如下: Exception has occurred: ImportError Unable to import required dependencies: pytz: N ...

  5. ClassNotFoundException: javax.activation.MimeTypeParseException

    编译项目时,如果出现下面的问题 Caused by: java.lang.ClassNotFoundException: javax.activation.MimeTypeParseException ...

  6. Unable to import required dependencies: numpy: The Python version is: Python3.8 from “D:\ancon\pytho

    Unable to import required dependencies: numpy: The Python version is: Python3.8 from "D:\ancon\ ...

  7. java javax.mail pom_软件包javax.mail和javax.mail.internet不存在

    软件包javax.mail和javax.mail.internet不存在 当我编译具有以下2个导入语句的简单代码时: import javax.mail.* import javax.mail.int ...

  8. java 邮箱地址不存在_java-软件包javax.mail和javax.mail.internet不存在

    java-软件包javax.mail和javax.mail.internet不存在 当我编译具有以下2个import语句的简单代码时: package javax.mail.internet does ...

  9. OSError: Unable to download 'ffmpeg.win32.exe'. Perhaps there is a no internet connection? If there

    OSError: Unable to download 'ffmpeg.win32.exe'. Perhaps there is a no internet connection? If there ...

最新文章

  1. ListBox的一个郁闷小问题!
  2. 使用css模拟vista毛玻璃效果
  3. Codeforces 768B - Code For 1(分治思想)
  4. DataGridView 列自适应宽度 设置
  5. vue,微信小程序,插件库,前端框架,PPT,工具,源码等学习网站
  6. 面经——华为联发科小米兆易创新(2020年秋招嵌入式软件)
  7. android studio实现记住密码,Andriod Studio实现保存QQ密码功能(案例代码详解)
  8. 【linux内核分析与应用-陈莉君】动手实践--内核多任务并发实例
  9. 解决ubuntu20.04火狐浏览器不能播放视频
  10. AI绘画怎么生成?这些软件帮助你实现
  11. khadas与树莓派_抛弃电信机顶盒,单板电脑打造家庭多媒体中心
  12. c语言海明校验码编码,海明校验码的编码规则有哪些?
  13. 转转代扣“支付通道费”被“放大”背后,二手交易的命门是什么?
  14. 去除带下划线的word文档答案
  15. Monkey自动化测试
  16. 梯度爆炸与梯度消失是什么?有什么影响?如何解决?
  17. Win10 环境下 Mingw-w64,CMake,CLion 安装及配置 C/C++ 和 OpenCV 运行环境
  18. 没有实习经验,没有项目经验,简历怎么写?
  19. 华为服务器安全系统,服务器安全增强系统
  20. Mesh与WiFi的区别

热门文章

  1. cobalt strick 4.0系列教程(3)---数据管理
  2. 宜昌宝塔河项目_宜昌城区首个垃圾分类定时定点投放点启用 厨余垃圾破袋投放...
  3. python string转int_我用Python搞资源 [ 02 ]
  4. CodeForces 570B,C
  5. C语言模拟实现标准库函数之strlen()
  6. linux中的IO函数
  7. linux 用户管理以及其他命令
  8. arm-linux 交叉编译 mp4v2
  9. 【C language】动态数组的创建和使用
  10. 001 makefile的使用