I'm using 2.0.0 SNAPSHOT. I was looking at WebClient from latest CXF source, not in TomEE since I build from SNAPSHOT artifacts and not TomEE source.
On Mon, Apr 20, 2015 at 1:48 PM, Romain Manni-Bucau <[email protected]> wrote: > hmm, i checked cxf 3.0.3 (our version in tomee 2.0.0-SNAPSHOT), what's your > version? Looks like a 2.x > > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2015-04-20 19:32 GMT+02:00 sgjava <[email protected]>: > > > Looks to me like it expects WebClient, not WebTarget: > > > > /** > > * Retieves ClientConfiguration > > * @param client proxy or http-centric Client > > * @return underlying ClientConfiguration instance > > */ > > public static ClientConfiguration getConfig(Object client) { > > if (client instanceof Client) { > > if (client instanceof WebClient) { > > return ((AbstractClient)client).getConfiguration(); > > } else if (client instanceof InvocationHandlerAware) { > > Object handler = > > ((InvocationHandlerAware)client).getInvocationHandler(); > > return ((AbstractClient)handler).getConfiguration(); > > } > > } > > throw new IllegalArgumentException("Not a valid Client"); > > } > > > > > > > > -- > > View this message in context: > > > http://tomee-openejb.979440.n4.nabble.com/JAX-RS-POJO-mapping-tp4674454p4674533.html > > Sent from the TomEE Users mailing list archive at Nabble.com. > > > -- Steven P. Goldsmith
