title: java.lang.LinkageError: ClassCastException javax.ws.rs-api-2.1.1.jar
body: <p>Its been a week since i am struggling with this error! Please help !
  I think that it has something to do with me having both javax and jakarta in my lib but whenever i try to remove one the web app just stops working.</p>
  <p>Here is the error :</p>
  <pre><code>java.lang.LinkageError: ClassCastException: attempting to castjar:file:/C:/Users/Salma/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Trial4/WEB-INF/lib/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/client/ClientBuilder.class to jar:file:/C:/Users/Salma/eclipse-workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Trial4/WEB-INF/lib/javax.ws.rs-api-2.1.1.jar!/javax/ws/rs/client/ClientBuilder.class
      javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:81)
      com.docusign.esign.client.ApiClient.buildHttpClient(ApiClient.java:1921)
      com.docusign.esign.client.ApiClient.&lt;init&gt;(ApiClient.java:77)
      com.docusign.esign.client.ApiClient.&lt;init&gt;(ApiClient.java:107)
      com.uniquedeveloper.registration.test2.doPost(test2.java:102)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:681)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
      org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
  </code></pre>
  <p>Here is a screenshot of the jars i am using :</p>
  <p><a href="https://i.stack.imgur.com/qkZLB.png" rel="nofollow noreferrer">LIB</a></p>
  <p>Thank you !</p>