This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I am trying to use Axis to turn a Java Class into a webservice. However, one of the methods in my java class accepts a java class found in a jar file. This causes Axis to throw a ClassNotFoundException when I run the ant task <Axis-java2wsdl>
Example: If I try to turn the folloing class into a webservice using axis' ant task <Axis-java2wsdl>, I will get a ClassNotFoundException on class com.this.that.Sample (even though I have put this jar in the classpath)
MyWebService.java ... import com.this.that.Sample; // found in jar file sample.jar
public class MyWebService { public static int foo(Sample sample) { ... } }
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35252
7
posted
0
I don't think Ant uses CLASSPATH variable. Make sure the jar file is in the classpath for the java2wsdl task. Ants "-verbose" option is very useful in tracking down problems like this.