axis报错 java.lang.NoClassDefFoundError: javax.mail.inter

J2EE 码拜 9年前 (2016-03-14) 1642次浏览
执行OrderService service = new OrderServiceLocator();的时候报如下错误:
Caused by: java.lang.NoClassDefFoundError: javax.mail.internet.MimeMultipart
at org.apache.axis.encoding.DefaultTypeMappingImpl.class$(DefaultTypeMappingImpl.java:120)
at org.apache.axis.encoding.DefaultTypeMappingImpl.initMappings(DefaultTypeMappingImpl.java:308)
at org.apache.axis.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:91)
at org.apache.axis.encoding.DefaultTypeMappingImpl.getSingletonDelegate(DefaultTypeMappingImpl.java:85)
at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:155)
at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:149)
at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:449)
at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
at org.apache.axis.client.Service.getAxisClient(Service.java:104)
at org.apache.axis.client.Service.<init>(Service.java:113)
at com.zving.shop.webservice.order.OrderServiceLocator.<init>(OrderServiceLocator.java:14)
本人反编译了一下代码,是在DefaultTypeMappingImpl类中的这个地方报的错:
myRegister(Constants.MIME_MULTIPART, MimeMultipart.class, new JAFDataHandlerSerializerFactory(MimeMultipart.class, Constants.MIME_MULTIPART), new JAFDataHandlerDeserializerFactory(MimeMultipart.class, Constants.MIME_MULTIPART));
本人已经有了mail.jar和activation.jar而且在 new OrderServiceLocator();假如调用System.out.println(MimeMultipart.class)是可以正常输出的,求高手解答,急。
环境:eclipse  jdk1.5
解决方案

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明axis报错 java.lang.NoClassDefFoundError: javax.mail.inter
喜欢 (0)
[1034331897@qq.com]
分享 (0)