Forums Register Login

exception while using JWSDP1.5

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Is hello.HelloWorldServiceLocator the name of the generated class?

Is it located under /hello folder?
If I had asked people what they wanted, they would have said faster horses - Ford. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 800 times.
Similar Threads
Exception thrown While Running a Client
WSDL access error
RAD EJB Standalone Client
STUB, Dynamic Proxy, DII
WS-Security
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 03:52:28.