jakub-bochenski / guice-cxf

Guice ESDL for Apache CXF (JAX-RS)
Apache License 2.0
1 stars 7 forks source link

Support Apache CXF 2.7.x #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Seems like CXF has made some changes, notably that the 
ClientWebApplicationException and ServerWebApplicationException classes no 
longer exist. (And I assume the interface that was generating them has changed.)

Original issue reported on code.google.com by asher...@versature.com on 26 Feb 2013 at 6:11

GoogleCodeExporter commented 9 years ago
Found this:

http://cxf.apache.org/docs/27-migration-guide.html

"JAX-RS: 3 classes have been removed from the org.apache.cxf.jaxrs.client 
package: ResponseReader, ServerWebApplicationException, 
ClientWebApplicationException. The first class in the list is not needed with 
JAX-RS 2.0 Response class, the latter two are replaced by 
javax.ws.rs.WebApplicationException and javax.ws.rs.client.ClientException"

Original comment by asher...@versature.com on 26 Feb 2013 at 7:40

GoogleCodeExporter commented 9 years ago
Hi,
 this change is not that trivial, since the previous versions here relied on JAX-RS 1.0, so it's not as simple as changing those exceptions.

Still if you want to use this with CXF 2.7 just get the sources and remove the 
offending part -- it's not used unless you set CXFClientModule.wrapProxies();

Original comment by kuba.bochenski@gmail.com on 8 Mar 2013 at 3:36

GoogleCodeExporter commented 9 years ago
PS. In case it's not clear it's here: 
https://code.google.com/p/guice-cxf/source/browse/src/main/java/com/google/code/
inject/jaxrs/CXFClientModule.java

Or you can just remove the whole CXFClientModule if you don't need to configure 
JSX-RS clients.

Original comment by kuba.bochenski@gmail.com on 8 Mar 2013 at 3:41