使用Docusign Java Client时遇到java.lang.NoClassDefFoundError:com.sun.jersey.core.header.MediaTypes类 [英] Running into java.lang.NoClassDefFoundError: class com.sun.jersey.core.header.MediaTypes while using the Docusign Java Client
本文介绍了使用Docusign Java Client时遇到java.lang.NoClassDefFoundError:com.sun.jersey.core.header.MediaTypes类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Docusign的新手,并尝试使用 Java客户端,但是我遇到了尝试使用配方中的代码时出现以下错误-
I am new to Docusign and trying to use the Java Client However I run into the following error when trying to use code from the recipes -
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jersey.core.header.MediaTypes
at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:182)
at com.sun.jersey.core.spi.factory.MessageBodyFactory.initReaders(MessageBodyFactory.java:176)
at com.sun.jersey.core.spi.factory.MessageBodyFactory.init(MessageBodyFactory.java:162)
at com.sun.jersey.api.client.Client.init(Client.java:343)
at com.sun.jersey.api.client.Client.access$000(Client.java:119)
at com.sun.jersey.api.client.Client$1.f(Client.java:192)
at com.sun.jersey.api.client.Client$1.f(Client.java:188)
at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:193)
at com.sun.jersey.api.client.Client.<init>(Client.java:188)
at com.sun.jersey.api.client.Client.<init>(Client.java:160)
at com.sun.jersey.api.client.Client.create(Client.java:673)
at com.docusign.esign.client.ApiClient.getClient(ApiClient.java:671)
at com.docusign.esign.client.ApiClient.getAPIResponse(ApiClient.java:429)
at com.docusign.esign.client.ApiClient.invokeAPI(ApiClient.java:543)
at com.docusign.esign.api.AuthenticationApi.login(AuthenticationApi.java:147)
我用来解决某些依赖性问题的jar是-
The jars that I included to resolve some dependency issues are -
com.fasterxml.jackson.core/jars/jackson-annotations-2.4.2.jar
com.fasterxml.jackson.core/jars/jackson-core-2.4.2.jar
com.fasterxml.jackson.core/jars/jackson-databind-2.4.2.jar
com.fasterxml.jackson.datatype/jars/jackson-datatype-joda-2.1.5.jar
io.swagger/jars/swagger-annotations-1.5.4.jar
com.sun.jersey.contribs/jars/jersey-multipart-1.18.jar
com.sun.jersey/jars/jersey-bundle-1.19.jar
com.brsanthu/jars/migbase64-2.2.jar
com.docusign.esign/jars/com-docusign-esign-15.4.0.jar
推荐答案
您没有球衣核心jar.您可以从此处
You don't have jersey-core jar. You can download the jar from here
这篇关于使用Docusign Java Client时遇到java.lang.NoClassDefFoundError:com.sun.jersey.core.header.MediaTypes类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文