On 10/31/2011 11:10 PM, Sergey Beryozkin wrote:
https://github.com/zygm0nt/cxf-playground/blob/master/rest-example/src/main/resources/META-INF/spring/beans.xml
JAXRSDataBinding provider is a fairly specific provider - do you need to
use it in your project ?
No, I don't need that. It is commented out and should not be used by CXF.
Well, that's strange for me. I'd also like to annotate just interface
class, but bear in mind the problem I'm having when deploying on
Servicemix - only the first operation is available, others aren't.
Perhaps resolving this would allow me to remove annotations from
implementing class?
Sorry - I don't understand...Annotating the interface only has to work...
I thought the same, but as I wrote earlier, it doesn't work. It might be
caused by Servicemix, but I just can't figure it out.
I've just performed a test with annotations on the interface only. It
gave me this kind of errors (with url
http://localhost:20808/myService/sayHello/xyz):
.No operation matching request path /sayHello/xyz is found, HTTP Method
: GET, ContentType : */*, Accept :
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
If is use annotations in implementation class this log is not present,
and the result is as expected.
https://github.com/zygm0nt/cxf-playground/blob/master/rest-example/src/test/java/pl/touk/cxf/rest/example/MyServiceTest.java
I don't have time right now to run these tests, etc. Please try to
simplify the configuration - avoid any custom providers, have a basic
endpoint set up only,
by the way, the jaxrs binding import is not needed anymore - will update
the docs...
I've removed jaxrs binding import.
All those custom providers are commented out. Despite this fact, the
tests don't work. It gives the same errors as shown above ("No operation
matching request path"). Status code is 406.
Marcin