我必须从wsdl文件创建一个Web服务客户端。我已经按照教程在eclipse向导中创建和测试服务客户端,并且(我认为我已经实现了代码来调用服务),但我不断得到这个堆栈跟踪,我知道它可能是微不足道但我没有设法在互联网上找到任何东西。我已将这些库附加到路径中,所以我无法理解这是什么,我感谢任何帮助,第一次处理Web服务。我不确定在这里发布整个堆栈跟踪是否可以,它非常大,但这里有一部分......
Dec 8, 2010 7:10:31 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: Fault occurred while processing.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Fault occurred while processing.
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
atorg.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:601)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2938)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at ch.contract.BookCourseServiceEndpointServiceSoapBindingStub.getCourses(BookCourseServiceEndpointServiceSoapBindingStub.java:287)
at ch.contract.RemoteBookCourseServiceProxy.getCourses(RemoteBookCourseServiceProxy.java:62)
at ch.controllers.BookCourseController.getAllCourses(BookCourseController.java:23)
at ch.gui.CourseListFrame.initComponents(CourseListFrame.java:60)
at chbookcourse.gui.CourseListFrame.start(CourseListFrame.java:37)
at ch.bookcourse.Runner.main(Runner.java:9)
{http://xml.apache.org/axis/}hostname:usis-MacBook-Pro-15.local
答案 0 :(得分:8)
确保JAF (Java Activation Framework)中的activation.jar
位于您的类路径中。
答案 1 :(得分:0)
我使用eclipse birt报告查看器在tomcat 8上解决了这个警告/错误。
从以下位置获取最新的:
并将它们放入安装目录(就像在classpath中一样):
这应该可以解决你的问题