This discussion is archived
0 Replies Latest reply: Feb 29, 2012 10:52 PM by 796911 RSS

Provider<T> webservice, JWSC task error

796911 Newbie
Currently Being Moderated
Hi,
I am trying to create a RESTFul webservice using Provider<T> interface. When I run Ant task, it gives following error

Caused by: com.sun.xml.ws.model.RuntimeModelerException: A WebService annotation is not present on class: examples.webservices.restws.NearByCity

I am providing @WebServiceProvider annotation for the class. As per specs only one annotation WebService or WebServiceProvider is required.

Can someone let me know if I am doing right?

thx
Ashwani

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points