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);