axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Reynolds <...@RonReynolds.com>
Subject Re: Why Exception NoClassDefFoundError?
Date Fri, 14 Oct 2005 14:52:00 GMT
looks like your class name is wrong:
D:\dev\axis-1_2_1\webapps\axis\WEB-INF\lib>jar tf axis.jar | grep Java2WSDL
org/apache/axis/wsdl/Java2WSDL.class
(so you'll want to try "java org.apache.axis.wsdl.Java2WSDL ...")

Chang Zhou wrote:

> Hi, Axis Users,
>
> I am trying to setup my web service using Axis, but I got this problem.
> ============================
> D:\Tomcat5.5\webapps\axis>javac MyWebService.java
>
> D:\Tomcat5.5\webapps\axis>copy MyWebService.java MyWebService.jws
> Overwrite MyWebService.jws? (Yes/No/All): yes
>       1 file(s) copied.
>
> D:\Tomcat5.5\webapps\axis>java org.apache.axis.Java2WSDL -o 
> MyWebService.wsdl -l
> "http://localhost:8080/axis/MyWebService.jws" MyWebService
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> org/apache/axis/Java2
> WSDL
>
> D:\Tomcat5.5\webapps\axis>
> =============================
>
> I have done serialization of class Person, and I can compile without 
> problem in current directory. I don't know why I got this error 
> message? Looks like when I use Java2WSDL to generate WSDL, we cannot 
> find Person class any more. Could you please help asap?
>
> Thank you very much!
>
> Mike
>
> ============MyWebService.jws============
> public class MyWebService{
>
> public Person tom;
>
> MyWebService() { tom = new Person(); tom.istall = true;
>
> tom.isrich = true; }
>
> public Person whois() { return tom; }
> }
> ============MyWebService.jws============
>
> ============Person.java============
> public class Person implements java.io.Serializable{
> private boolean istall;
> private boolean isrich;
>
> public Person() {}
>
> public boolean getIstall() { return istall; }
> public void setIstall(boolean istall) { this.istall = istall; }
>
> public boolean getIsrich() { return isrich; }
> public void setIsrich(boolean isrich) { this.isrich = isrich; }
> }
> ============Person.java============
>
>


Mime
View raw message