Re: error in client program

2016-09-25 Thread Yaragalla Muralidhar
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/ * On Sun, Sep 25, 2016 at 9:41 PM, Sergey

Re: error in client program

2016-09-25 Thread Sergey Beryozkin
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 =

Re: error in client program

2016-09-25 Thread Yaragalla Muralidhar
I tried with the following to invoke the service. WebClient client = WebClient.create(" http://localhost:8080/weath/api/v1/cities/cities;, "test", "murali", null); the above is giving following error. any ideas on how to resolve this? Exception in thread "main" java.lang.VerifyError: Cannot

error in client program

2016-09-24 Thread Yaragalla Muralidhar
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 =