• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

NoClassDefFoundError

 
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting this error when trying to run a client for my WS. Here is the client code:

package helloserver;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

public class Client1 {
public static void main(String[] args) throws Exception {
String endpoint = "http://localhost:8080/axis/services/HelloService";

Service service = new Service();
Call call = (Call) service.createCall();

call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName("sayHelloTo");
String ret = (String) call.invoke(args);
printRequestAndResponseSOAP(call);

System.out.println(ret);
}

public static void printRequestAndResponseSOAP(Call call) throws Exception {
String request = call.getMessageContext().getRequestMessage()
.getSOAPPartAsString();
String response = call.getMessageContext().getResponseMessage()
.getSOAPPartAsString();

System.out.println("SOAP REQUEST:\n" + request);
System.out.println("SOAP RESPONSE:\n" + response);
}
}


I have the commons-logging-1.0.4.jar file installed. Any ideas?
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am getting this error


And what error is that? Post the full mesage and stack trace, and indicate in which line of your source the error occurs.
 
reply
    Bookmark Topic Watch Topic
  • New Topic