CXF 3.1.8 throwing java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

CXF 3.1.8 throwing java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException

sbalustar
This post was updated on .
Migrating cxf version from 2.7.7 to 3.1.8. Earlier i used javax rs ws 2.0-m10 version , but with cxf 3.1.8 that version is not Supporting and throwing
  java.lang.NoClassDefFoundError: javax/ws/rs/core/NoContentException.
  To fix this issue changed the version of javax.rs.ws to 2.0.1.

But , i am also using some other jar(which is developed by other team) which is dependent on javax rs ws 2.0-m10. If i changed the version to 2.0.1 the server is failed to start with
Caused by java.lang.ClassNotFoundException: javax.ws.rs.client.ClientException
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1892)
        at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1735)

Anyone help is much appreciated.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CXF 3.8 throwing java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException

sbalustar
We are also using some other jar , which is using javax.rs.ws 2.0-m10 . But cxf 3.1.8 is not compatible with
 javax.rs.ws 2.0-m10. what could be the solution?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: CXF 3.8 throwing java.lang.NoClassDefFoundError: javax/ws/rs/client/ClientException

Sergey Beryozkin
Administrator
I can't think of anything but making sure both jars use the same version

Sergey
On 10/08/17 21:39, sbalustar wrote:

> We are also using some other jar , which is using javax.rs.ws 2.0-m10 . But
> cxf 3.1.8 is not compatible with
>   javax.rs.ws 2.0-m10. what could be the solution?
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-3-8-throwing-java-lang-NoClassDefFoundError-javax-ws-rs-client-ClientException-tp5782566p5782594.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>


--
Sergey Beryozkin

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