Yes you are right. I resolved my problem. it is because of version
conflict. When i use maven for getting dependencies everything got resolved.

*Thanks and Regards,*
Muralidhar Yaragalla.

*http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>*

On Sun, Sep 25, 2016 at 9:41 PM, Sergey Beryozkin <[email protected]>
wrote:

> I think this issue and the one reported in the next email are caused by
> some API mix in, ex, JAX-RS 1.1 & 2.0.
>
> Sergey
> On 25/09/16 01:47, Yaragalla Muralidhar wrote:
>
>> 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(ClientImp
>> l.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/>*
>>
>>
>

Reply via email to