Verify the Client Configuration
OAuth ID propagation requires that the client configuration be set in you REST-Client file.
Verify that the client configuration is defined in your REST-Client file, as illustrated in the highlighted lines in this example:
.
.
.
public class HelloWorldJAXRSClient extends HttpServlet {
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws Exception {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
ClientResponse clientResponse = null;
ClientConfig cc = new DefaultClientConfig();
Client client = Client.create(cc);
ClientFilter filter = new RESTClientFilter();
client.addFilter(filter);
WebResource webResource = client
.resource("https://example.java.us.oraclecloud.com/rest/resources/helloworld");
clientResponse = webResource.accept("text/plain").get(
ClientResponse.class);
String res = clientResponse.getEntity(String.class);
}
}