• Post Reply Bookmark Topic Watch Topic
  • New Topic

exception while using JWSDP1.5

 
Veshnu Ramakrishnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi my code is this but i get a ClassnotFoundException. I generated those classes using wscompile tool in JWSDP1.5. It didn't create a class called hello.HelloWorldServiceLocator. but it asks for that class during running the client. I have placed the client class and the error bellow

import javax.xml.rpc.*;
import hello.HelloWorldService;
import hello.HelloIF;
public class JAXRpcExample {
public static void main(String as[]) {
try{
ServiceFactory fact = ServiceFactory.newInstance();
HelloWorldService serv =(HelloWorldService) fact.loadService(HelloWorldService.class);
HelloIF stub = serv.getHelloIFPort();
stub.sayHelloBack("veshnu");
} catch(Exception e) {
System.out.println(e);
}
}
}


G:\javap\web service\generated>java JAXRpcExample
javax.xml.rpc.ServiceException: java.lang.ClassNotFoundException: hello.HelloWorldServiceLocator
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is hello.HelloWorldServiceLocator the name of the generated class?

Is it located under /hello folder?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!