On Thu, Jan 22, 2009 at 12:59 AM, William Shatner <[email protected]
> wrote:

> Hi,
>
> Apologies if the question is too basic for this forum. I'm developing my
> first java web service using Eclipse/Axis2/Tomcat. I followed the excellent
> tutorial found at
> http://www.builderau.com.au/program/java/soa/Setting-up-a-simple-Web-service-using-Java/0,339024620,339284524,00.htm
> * 
> *<http://www.builderau.com.au/program/java/soa/Setting-up-a-simple-Web-service-using-Java/0,339024620,339284524,00.htm>
> which worked fine and my development environment is still set up mimicking
> the tutorial example. My problem is that I am now trying to use external
> jars with my program on the client and  web service side to process the
> message when it arrives at the web service.


could you please try directly with the tomcat  and axis2 with out using
eclipse.

thanks,
Amila.

>
>
> Basic web service / client communication is fine when using basic java
> strings etc. but when I start accessing the external .jar to help process
> the received strings etc I get axis2 errors along the line of
>
> *org.apache.axis2.AxisFault: com/sdk/path/within/jarfile/Message
> at
>
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
> at
>
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
> ....
> ...
> ..
> [ERROR] com/path/path/within/jarfile/Message
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>
>
>
> and I also get
>
>
> *[ERROR] org/apache/axis/description/FieldDesc
> java.lang.reflect.InvocationTargetException
>
> when accessing this jar.
>
> I'm guessing I somehow have to put this jar in my axis2_home/lib folder or
> something similar but I've no idea how to find axis2_home..i have seen it in
> the xmls but can't resolve the ${parameter} to output to the screen.. when i
> edit the xml it gets overwritten. There is no lib folder in the axis2-web
> folder in my workspace and I tried placing the jar file the WEB-INF/lib
> folder but to no avail....The jar is on my Java Eclipse build path and
> causes no Java compilation errors, works fine as a standard Java app etc.
> but Axis2 doesn't seem to want to know about it!!!!!
>
> Any help greatly appreciated..
>
> Thanks,
> Tori
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Reply via email to