0

I am trying to redirect to a url which requires a security context and login ticket associated with it. I got the redirected url but not able to access it using ClientResponse.It shows java.lang.NoClassDefFoundError: com/sun/jersey/spi/inject/Errors$Closure. I am unable to get its reason.Kindly help me with the same.

Following is code to get client response...

  Client restClient = Client.create();

  WebResource webResource = restClient.resource(
                            redirectUrl);

  ClientResponse resp = webResource.accept("application/json")
                            .header("Authorization", "Basic " + authStringEnc).header("Accept Language", "en-US")
                            .get(ClientResponse.class);
Pramod S. Nikam
  • 4,271
  • 4
  • 38
  • 62

1 Answers1

0

Jersey is not on your classpath at runtime, but it was at compile time.

(That is all that can be derived from your information)

Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347