Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Apache CXF 2.7.x #2

Open
GoogleCodeExporter opened this issue Mar 26, 2015 · 3 comments
Open

Support Apache CXF 2.7.x #2

GoogleCodeExporter opened this issue Mar 26, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 26 Feb 2013 at 6:11

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 26 Feb 2013 at 7:40

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 8 Mar 2013 at 3:36

  • Changed state: Started
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 8 Mar 2013 at 3:41

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant