• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AXIS and Classpath

 
David Kincade
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic