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.

Comments on DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors.

Parent

DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors.

+4
−0

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?).
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Are the prerequisites on the classpath? (1 comment)
Missing dependencies? (1 comment)
Post
+4
−0

I am new to Maven so I did not know that I have to "Update Project".

If you are using Eclipse editor then you can right click on the project --> "Maven" --> "Update Project" to install dependencies to fix this problem.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

I assume this is something you did in Eclipse? I see no mention of Eclipse in either your question o... (2 comments)
I assume this is something you did in Eclipse? I see no mention of Eclipse in either your question o...
VGR‭ wrote over 1 year ago

I assume this is something you did in Eclipse? I see no mention of Eclipse in either your question or your answer. Merely mentioning “Java” does not imply Eclipse; Eclipse is not an official part of Java at all. Eclipse is merely a tool that makes use of Java.

Vanity Slug ❤️‭ wrote over 1 year ago

Good point, thank you. I updated my answer.