Error while executing wsgen
843833 Feb 14, 2007 6:57 PMHI,
I am using JAXWS 2,1.......
i am trying to develop my own example in that i am codding the implementation part
the code is
Thanks a lot...
I am using JAXWS 2,1.......
i am trying to develop my own example in that i am codding the implementation part
the code is
package Das.server;
import javax.jws.WebService;
import javax.xml.ws.BindingType;
@javax.jws.WebService (endpointInterface="Das.server.DasImplPort")
public class DasImpl {
public String InvokeDasService (String serviceName){
serviceName+="You got the Mark";
return serviceName;
}
}
and while i am trying to generate the artifacts using following command
wsgen -d build -s build -classpath . Das.server.DasImpl
it is giving me following error
Problem encountered during annotation processing;
see stacktrace below for more information.
com.sun.tools.ws.processor.modeler.ModelerException: [failed to localize] The endpointInterface class Das.server.DasImplPort could not be found()
at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.onError(WebServiceAP.java:211) at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.getEndpointInterfaceDecl(WebServiceVisitor.java:384)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalImplementation(WebServiceVisitor.java:494)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:306)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:109)
at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:311)
at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:252)
at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:458) at com.sun.tools.apt.main.Main.compile(Main.java:1075)
at com.sun.tools.apt.main.Main.compile(Main.java:938)
at com.sun.tools.apt.Main.processing(Main.java:95)
at com.sun.tools.apt.Main.process(Main.java:85)
at com.sun.tools.apt.Main.process(Main.java:67)
at com.sun.tools.ws.wscompile.WsgenTool.buildModel(WsgenTool.java:161)
at com.sun.tools.ws.wscompile.WsgenTool.run(WsgenTool.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.tools.ws.Invoker.WsgenMain(Invoker.java:115)
at com.sun.tools.ws.WsGen.main(WsGen.java:38)
error: compilation failed, errors should have been reported
so please do help me on this....Thanks a lot...