hi,all
I want to export tapestry service as web service.
ServiceActivityScoreboard sas =
registry.getService(ServiceActivityScoreboard.class);
List<ServiceActivity> activities = sas.getServiceActivity();
for(ServiceActivity activity:activities){
Class<?> serviceInterface = activity.getServiceInterface();
WebService annotation = serviceInterface.getAnnotation(WebService.class);
if (annotation != null) {
Endpoint endpoint = Endpoint.create(registry.getService(serviceInterface));
String fullAddress = baseAddress + annotation.serviceName();
endpoint.publish(fullAddress);
}
}
I find exception is thrown.
Exception in thread "main" java.lang.IllegalArgumentException: class
$DataQueryService_126a6c0531a has neither @WebSerivce nor
@WebServiceProvider annotation
at
com.sun.xml.internal.ws.server.EndpointFactory.verifyImplementorClass(EndpointFactory.java:277)
at
com.sun.xml.internal.ws.transport.http.server.EndpointImpl.getPrimaryWsdl(EndpointImpl.java:273)
at
com.sun.xml.internal.ws.transport.http.server.EndpointImpl.createEndpoint(EndpointImpl.java:213)
at
com.sun.xml.internal.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:143)
I think the service is enhanced lost the @WebService annotation .
give me some advice?
thanks
--
regards,
Jun Tsai