Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

75%
+4 −0
Q&A DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors.

I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here: https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/ ...

1 answer  ·  posted 11mo ago by Vanity Slug ❤️‭  ·  last activity 11mo ago by Vanity Slug ❤️‭

#4: Post edited by user avatar Vanity Slug ❤️‭ · 2023-06-16T12:52:50Z (11 months ago)
Added maven tag because that's where the problem was.
#3: Post edited by user avatar Vanity Slug ❤️‭ · 2023-06-15T14:05:49Z (11 months ago)
Added s.
  • I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here:
  • https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/
  • I created a java project, converted it to Maven, installed DocuSign's SDK (docusign-esign-java-4.3.0.jar) through Maven and wrote this piece of code:
  • ```
  • package myPackage;
  • import com.docusign.esign.client.ApiClient;
  • public class signStuff{
  • public static void main(String[] args) {
  • try {
  • // error happens on the next line
  • ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
  • catch (Exception e) {
  • System.out.println(e.getMessage());
  • }
  • }
  • }
  • ```
  • When I run this code I've been getting 3 types of error:
  • > Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/jersey/media/multipart/BodyPart
  • > Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/util/ISO8601DateFormat
  • > Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/ws/rs/core/GenericType
  • My code does not go into `catch`, it just crushes on `new ApiClient(...)` line.
  • - Why am I getting these error? (Could I be missing some dependencies? DocuSign documentation does not seem to say anything about that).
  • - What can I do to fix these error?
  • - Why am I getting different errors on different runs? (Could it be because of multithreading?).
  • I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here:
  • https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/
  • I created a java project, converted it to Maven, installed DocuSign's SDK (docusign-esign-java-4.3.0.jar) through Maven and wrote this piece of code:
  • ```
  • package myPackage;
  • import com.docusign.esign.client.ApiClient;
  • public class signStuff{
  • public static void main(String[] args) {
  • try {
  • // error happens on the next line
  • ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
  • catch (Exception e) {
  • System.out.println(e.getMessage());
  • }
  • }
  • }
  • ```
  • When I run this code I've been getting 3 types of error:
  • > Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/jersey/media/multipart/BodyPart
  • > Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/util/ISO8601DateFormat
  • > Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/ws/rs/core/GenericType
  • My code does not go into `catch`, it just crushes on `new ApiClient(...)` line.
  • - Why am I getting these errors? (Could I be missing some dependencies? DocuSign documentation does not seem to say anything about that).
  • - What can I do to fix these error?
  • - Why am I getting different errors on different runs? (Could it be because of multithreading?).
#2: Post edited by user avatar Vanity Slug ❤️‭ · 2023-06-15T14:00:43Z (11 months ago)
Finished adding info I forgot to add.
  • I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here:
  • https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/
  • I created a java project, converted it to Maven, installed DocuSign's SDK (docusign-esign-java-4.3.0.jar) through Maven and wrote this piece of code:
  • ```
  • package myPackage;
  • import com.docusign.esign.client.ApiClient;
  • public class signStuff{
  • public static void main(String[] args) {
  • try {
  • ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi"); // error here
  • catch (Exception e) {
  • System.out.println(e.getMessage());
  • }
  • }
  • }
  • ```
  • When I run this code I've been getting 3 types of error:
  • > Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/jersey/media/multipart/BodyPart
  • > Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/util/ISO8601DateFormat
  • > Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/ws/rs/core/GenericType
  • My code
  • - Why am I getting these error? (Could I be missing some dependencies? DocuSign documentation does not seem to say anything about that).
  • - What can I do to fix these error?
  • - Why am I getting different errors on different runs? (Could it be because of multithreading?).
  • I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here:
  • https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/
  • I created a java project, converted it to Maven, installed DocuSign's SDK (docusign-esign-java-4.3.0.jar) through Maven and wrote this piece of code:
  • ```
  • package myPackage;
  • import com.docusign.esign.client.ApiClient;
  • public class signStuff{
  • public static void main(String[] args) {
  • try {
  • // error happens on the next line
  • ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi");
  • catch (Exception e) {
  • System.out.println(e.getMessage());
  • }
  • }
  • }
  • ```
  • When I run this code I've been getting 3 types of error:
  • > Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/jersey/media/multipart/BodyPart
  • > Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/util/ISO8601DateFormat
  • > Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/ws/rs/core/GenericType
  • My code does not go into `catch`, it just crushes on `new ApiClient(...)` line.
  • - Why am I getting these error? (Could I be missing some dependencies? DocuSign documentation does not seem to say anything about that).
  • - What can I do to fix these error?
  • - Why am I getting different errors on different runs? (Could it be because of multithreading?).
#1: Initial revision by user avatar Vanity Slug ❤️‭ · 2023-06-15T13:58:20Z (11 months ago)
DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors.
I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here:

https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/

I created a java project, converted it to Maven, installed DocuSign's SDK (docusign-esign-java-4.3.0.jar) through Maven and wrote this piece of code:

```
package myPackage;

import com.docusign.esign.client.ApiClient;

public class signStuff{
  public static void main(String[] args) {
    try {
      ApiClient apiClient = new ApiClient("https://demo.docusign.net/restapi"); // error here
     catch (Exception e) {
      System.out.println(e.getMessage());
    }
  }
}
```

When I run this code I've been getting 3 types of error:

> Exception in thread "main" java.lang.NoClassDefFoundError: org/glassfish/jersey/media/multipart/BodyPart

> Exception in thread "main" java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/util/ISO8601DateFormat

> Exception in thread "main" java.lang.NoClassDefFoundError: jakarta/ws/rs/core/GenericType

My code 

- Why am I getting these error? (Could I be missing some dependencies? DocuSign documentation does not seem to say anything about that).
- What can I do to fix these error?
- Why am I getting different errors on different runs? (Could it be because of multithreading?).