DocuSign API integration issue with RESTful Web Services : javax.ws.rs-api-2.0.1.jar

252 Views Asked by At

My project is using DocuSign API to post Envelope with the Java client:

docusign-esign-java-3.2.0.jar

It works fine, but the project also needs to use jCloud with another lib dependency:

javax.ws.rs-api-2.0.1.jar

The server (tomcat) gets an exception when calling the JWT authent of DocuSign:

Could not initialize class com.sun.jersey.core.header.MediaTypes

Is it possible to fix this dependency problem without exploring the DocuSign sources?

2

There are 2 best solutions below

1
ameet chaubal On

welcome to SO. depending on the dependency management program you are using , you can print a tree and then investigate if there is any conflict. for gradle,

./gradlew app:dependencies

for Maven

mvn dependency:tree 

Also, generally before that message you will see a Java Exception. If you add that or look at it, it may throw more light on the problem.

best wishes.

1
Larry K On

Yes, we (DocuSign) have this issue logged as an issue for the SDK and as DocuSign internal ticket DCM-3324.

Please ask your DocuSign representative to add your organization information to DCM-3324 to help raise the priority of the issue. Thank you.