Error running My Web Service Client From java

Hi,

I have developed and successfully compiled my webservice using the fromjava programming model that comes pre-packed with Jwsdp 2.0. I ran the sample/from java sucessfully and it rn okay. I also wrote a small weservice that just concatenated 2 strings and that worked well as also. However when I implemented more complex functionality in my IMPL clas i.e calling other classes in the IMPL's package and other imported packages, I get the error below when I run my client, which was built successfully.

Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Unknown fault type:class java.lang.NoClassDefFoundError

[java]at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:82).............

I built both the server and the client with the ant tool e.g

<install DIR>\Sun\jwsdp-2.0\apache-ant\bin\ant server

<install DIR>\Sun\jwsdp-2.0\apache-ant\bin\ant client

and then ran the client like below...

<install DIR>\Sun\jwsdp-2.0\apache-ant\bin\ant run

Please if anyone has encountered this problem or if you know the cause of this problem, please drop a note.

Thanks

Dennis

[1216 byte] By [michuloa] at [2007-10-3 3:27:06]
# 1

I narrowed down the problem to the fact that from my webservices impl class, I am trying to call classes and libraries that perform tasks like database calls etc....

I think that I am not adding these classes or libraries to the jaxws environment as I should. I have ploughed through the documentation, and I noticed the <classpath> tag under <wsimport> which I added to the build.xml file pointing to my specific classes and libraries. Doing this enabled me to build the server sucessfully. However at runtime it throws that NoClassDef exception. Can some one offer some tips on how I can get the my classes to be executed at run time...

Thanks

michuloa at 2007-7-14 21:20:24 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...