I have written the following code for cxf client
public static void main(String[] args) {
Client client = ClientBuilder.newBuilder().newClient();
WebTarget target = client.target("http://localhost:8080/weath/api/v1");
target = target.path("cities/cities");
Invocation.Builder builder = target.request();
Response response = builder.get();
System.out.println(response);
}
the above code is giving the following error:-
Exception in thread "main" java.lang.AbstractMethodError:
javax.ws.rs.core.UriBuilder.uri(Ljava/lang/String;)Ljavax/ws/rs/core/UriBuilder;
at javax.ws.rs.core.UriBuilder.fromUri(UriBuilder.java:119)
at org.apache.cxf.jaxrs.client.spec.ClientImpl.target(ClientImpl.java:109)
at org.ymd.CxfClient.main(CxfClient.java:15)
how can i rectify this?
*Thanks and Regards,*
Muralidhar Yaragalla.
*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*