Hi, I just battled the same problem. I had setup Tomcat w/ an axis engine on a Windows machine, then I setup an identical axis engine running on Tomcat on a Linux box. My client worked fine on when making a call to the Windows box, but I got a Server.user fault with the code:
java.lang.reflect.InvocationTargetException As you mentioned, this is difficult to debug. Luckily I look at the simple stuff first and discovered that I failed to include jar files for the XML parser in the axis/WEB-INF/lib directory. After putting xerces jars in that directory, my client and service ran correctly. So, one possible cause of the java.lang.reflect.InvocationTargetException is that you might be missing some necessary jar files that the service needs. You'd think a error would be printed out in some log somewhere (in my case, a NoClassDefFoundError), but currently that's not the case. Hope this helps. ----- Jason Judt - Software Engineer Architecture Technology Corporation (952) 829 - 5864 x137 [EMAIL PROTECTED] -----Original Message----- From: Anatoly Shein [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 19, 2005 3:45 AM To: [EMAIL PROTECTED] Subject: RE: java.lang.reflect.InvocationTargetException invoking web service Hi We encountered with the same problem and found that in case of java.lang.Error was thrown on the server side axis just ignores the cause and answers to client with just InvocationTargetException without the cause. It is inconsistency in axis because in case of java.lang.Exception client aware to the cause. The example of java.lang.Error is OutOfMemoryErrror and StackOverflowError. I don't see any reason not to transfer the cause to the client side. The question to axis guys: are there any plans to fix the error notification tnx anatoly -----Original Message----- From: Greg Cawthorn [mailto:[EMAIL PROTECTED] Sent: Monday, January 10, 2005 5:49 PM To: [EMAIL PROTECTED] Subject: java.lang.reflect.InvocationTargetException invoking web service I am attempting to invoke a simlpe web service on Tomcat 5.0.25 with the Axis 1.1 webapp. The service has a single method which has one parameter, which I am serializing using Axis' BeanSerializer and BeanDeserializer classes. I have a <beanMapping> element declared for this class in my WSDD, and my generated WSDL includes definitions of these types. For some reason I get an InvocationTargetException when I try to invoke the service, which appears to be caused when attempting to deserialize the argument. Does anyone have an idea of what I have done wrong or how I can fix this? java.lang.reflect.InvocationTargetException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2 60) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:16 9) at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati onContextImpl.java:1015) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon textImpl.java:242) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538) at org.apache.axis.Message.getSOAPEnvelope(Message.java:376) at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675 ) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java: 71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.voxsurf.voice.telemail.ws.VxsAxisTelemailPort.sendTelemail(VxsAxisTelema ilPort.java:79) at com.voxsurf.voice.telemail.VxsTelemailService.submitTelemail(VxsTelemailServ ice.java:89) at com.voxsurf.voice.telemail.ws.VxsTelemailClient.sendTelemail(VxsTelemailClie nt.java:131) at com.voxsurf.voice.telemail.ws.VxsTelemailClient.main(VxsTelemailClient.java: 54) ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________