Have a look at
https://git-wip-us.apache.org/repos/asf?p=cxf.git;a=blob;f=systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSLocalTransportTest.java;h=05229fdc472c999a6edf7536842577ef8c238290;hb=HEAD

The node about cglib is here
http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-Proxy-basedAPI, usually one would indeed use an interface only

HTH, Sergey

On 14/07/15 17:38, Chris Wolf wrote:
I am looking at this page:

https://cwiki.apache.org/confluence/display/CXF20DOC/JAXRS+Testing

I was finally able to get the Jetty version running in spite of the
missing code (Book.java, MyJaxrsResource.java).   It also took a lot
of hours to figure out what caused this error:

java.lang.IllegalArgumentException : *.*.MyJaxrsResource is not an interface

(Needed gclib-nodeps on classpath)





Then when I tried the local transport, I keep getting:

IllegalStateException: Local destination does not have a
MessageObserver on address local://rest

I read this:

http://cxf.547215.n5.nabble.com/Local-Transport-MessageObserver-error-td4726603.html

...but the client and server *do* have the same bus instance.

The reason I want to use local transport is to speed up our unit
tests.  It would be great if there was a *complete* and *working*
example of a JAX-RS server and client operating over the local
transport and *not* using Spring (long story, but can't use Spring on
this project, so need programmatic configuration)

Thanks for any help/suggestions.



--
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Reply via email to