简体   繁体   中英

Unable to Test Java sample code in unix

I am trying to test sample java code for DocuSign(SignatureRequest.java) in my Unix environment. It works fine locally and also when I test it by giving all the jar files while running.

java -cp ".:./docusign/jars/*" docusign.oracle.apps.po.sign.SignatureRequest

But when I try to set the CLASSPATH with all the provided jar's. It throws me an error. I think there is some conflict. But I am not sure. Please help.

 java docusign.oracle.apps.po.sign.SignatureRequest

Jun 15, 2017 8:36:46 AM com.sun.jersey.spi.inject.Errors processErrorMessages SEVERE: The following errors and warnings have been detected with resource and/or provider classes: SEVERE: Missing dependency for field: javax.ws.rs.core.UriInfo com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.ui SEVERE: Missing dependency for field: com.sun.jersey.spi.template.TemplateContext com.sun.jersey.server.impl.template.ViewableMessageBodyWriter.tc Exception in thread "main" com.sun.jersey.spi.inject.Errors$ErrorMessagesException at com.sun.jersey.spi.inject.Errors.processErrorMessages(Errors.java:170) at com.sun.jersey.spi.inject.Errors.postProcess(Errors.java:136) at com.sun.jersey.spi.inject.Errors.processWithErrors(Errors.java:199) at com.sun.jersey.api.client.Client.(Client.java:188) at com.sun.jersey.api.client.Client.(Client.java:171) at com.sun.jersey.api.client.Client.create(Client.java:683) at com.docusign.esign.client.ApiClient.buildHttpClient(ApiClient.java:626) at com.docu sign.esign.client.ApiClient.(ApiClient.java:70) at docusign.oracle.apps.po.sign.SignatureRequest.main(SignatureRequest.java:32)

Thaks Bharat

It worked after adding jersey-server-1.19.1.jar. thanks a lot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM