I am trying to use the Apache Wink Client inside a JAX-RS application on Liberty 220.127.116.11, developing with Rational Software Architect for WebSPhere 18.104.22.168.
I get the following error:
The type org.apache.wink.client.internal.BaseRequestResponse cannot be resolved. It is indirectly referenced from required .class files
when I execute code like:
ClientConfig clientConfig = new ClientConfig();
RestClient client = new RestClient(clientConfig);
Resource res = client.resource("//URL");
ClientResponse response = res.get();
response.getEntity(JSONObject.class);//error on this line
I checked the file:
and indeed it does not contain the org.apache.wink.client.internal package. Is this a defect? What is the best resolution?