Hi. I'm using CXF 3.0.3 together with the CXF client proxy API. For that, I'm using the interfaces (!) from the server side implementation on the client.
I tried to convert the proxy into a WebClient like explained here: http://cxf.apache.org/docs/jax-rs-client-api.html#JAX-RSClientAPI-ConvertingproxiestoWebClientsandviceversa But that ends in: Exception in thread "main" java.lang.ClassCastException: com.sun.proxy.$Proxy37 cannot be cast to org.apache.cxf.jaxrs.client.InvocationHandlerAware at org.apache.cxf.jaxrs.client.WebClient.toAbstractClient(WebClient.java:1235) at org.apache.cxf.jaxrs.client.WebClient.copyProperties(WebClient.java:1227) at org.apache.cxf.jaxrs.client.WebClient.fromClient(WebClient.java:273) at org.apache.cxf.jaxrs.client.WebClient.fromClient(WebClient.java:251) My code: MyServiceInterface myServiceInterface = JAXRSClientFactory.create("http://somewhere"), MyServiceInterface.class, providers, username, password, null); Client client = WebClient.client(myServiceInterface); WebClient httpClient = WebClient.fromClient(client); // this fails Any idea where this comes from? Does this part rely on cglib? Thanks. Veit
