4

これは一般的な問題です。しかし、私のクラスとインターフェースには正しく注釈が付けられているようです。何かを見落としている場合はお知らせください。前もって感謝します。私はインターネットでたくさん検索しましたが、何も助けてくれませんでした。

例外の詳細:

C:\Indu\workspaceWS\CalculatorWS>wsgen -s src -verbose -d bin -cp bin com.indu.w
s.services.CalcServiceImpl

warning: The apt tool and its associated API are planned to be
removed in the next major JDK release.  These features have been
superseded by javac and the standardized annotation processing API,
javax.annotation.processing and javax.lang.model.  Users are
recommended to migrate to the annotation processing features of
javac; see the javac man page for more information.
Note:   ap round: 1
Problem encountered during annotation processing;
see stacktrace below for more information.
com.sun.tools.internal.ws.processor.modeler.ModelerException: [failed to localiz
e] A web service endpoint could not be found()
        at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.o
nError(WebServiceAP.java:219)
        at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.b
uildModel(WebServiceAP.java:326)
        at com.sun.tools.internal.ws.processor.modeler.annotation.WebServiceAP.p
rocess(WebServiceAP.java:260)

私のコード: 実装クラス:

@WebService(serviceName = "CalculatorService", endpointInterface = 
"com.indu.ws.services.CalcIntService", 
targetNamespace="http://com/indu/ws/services/",
portName="CalcIntServicePortType")
public class CalcServiceImpl implements CalcIntService {

インターフェース:

@WebService(name = "CalcIntServicePortType", targetNamespace = 
"http://com/indu/ws/services/", 
 wsdlLocation="WEB-INF/wsdl/CalculatorWS.wsdl")
public interface CalcIntService {
@WebMethod
public int doService(Calculator c);
    }
4

0 に答える 0