Axis java.lang.reflect.InvocationTargetException

开发环境

jbuilder2006 , tomcat5.0.28, axis。开发的webservice程序,启动没有问题,通过自动生成的客户端调用代码调用的时候报

 

faultCode:   {http://schemas.xmlsoap.org/soap/envelope/}Server.userException 
  faultSubcode: 
  faultString:   java.lang.reflect.InvocationTargetException 
  faultActor: 
  faultNode: 
  faultDetail: 
                {http://xml.apache.org/axis/}stackTrace:   AxisFault 
  faultCode:   {http://schemas.xmlsoap.org/soap/envelope/}Server.userException 
  faultSubcode: 
  faultString:   java.lang.reflect.InvocationTargetException 
  faultActor: 
  faultNode: 
  faultDetail: 

java.lang.reflect.InvocationTargetException 
                at   org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder 
.java:260) 
                at   org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder. 
java:169) 
                at   org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri 
alizationContextImpl.java:1015) 
                at   org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown   Source 
) 
                at   org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow 
n   Source) 

 

解决方式:

后来在项目中添加了类包(xmlParserAPIs.jar、xercesImpl.jar、jaxen-1.1-beta-6.jar),调用的时候就正常了。

 

你可能感兴趣的:(java,apache,xml,webservice,SOAP)