Friday, September 18, 2009

java.lang.reflect.InvocationTargetException on Tomcat 6.x/Axis1.4

I devloped the webservice using Apache Axis 1.4 an deployed it on Tomcat 6.x and it was giving some target invocation exception, below mentioned is a part of exception stacktrace while consuming it

java.lang.reflect.InvocationTargetException
at org.apache.axis.message.SOAPFaultBuilder.createFault(
SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(
SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(
DeserializationContext.java:1087)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
Source)

-----------------------------Solution-------------------------------------
         
Then I thought   to search for its solution ut its was vey hectic multiple solutions but no outcome i become drizy but at last i got solution.

The things were simple, i included multiple jar files needed for axis enviornment.  I included them in my classpath and also put them in my Tomcat lib folder.

So i remove the axis jars from tomcat/lib but it gives me more exception.

Then, I removed them from classpath and put them in Apache Tomcat /lib folder.

And, Finally, My problem was solved. Actually, Tomcat needs Axis runtime enviornment to deploy webservice.

Thanks to the links I refer
 link are here.

Hope this post able to solve your problem, if any.


Bookmark this pageDigg this sitesimpyslashdot Email this post