<div dir="ltr">That is not the same artefact.<div><br></div><div>resteasy-jaxrs vs resteasy-client</div><div><br></div><div>Stuart</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 5, 2013 at 12:41 PM, Arun Gupta <span dir="ltr"><<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That's what I thought and added at:<br>
<br>
<a href="https://github.com/arun-gupta/javaee7-samples/blob/master/jaxrs/pom.xml" target="_blank">https://github.com/arun-gupta/javaee7-samples/blob/master/jaxrs/pom.xml</a><br>
<br>
But <a href="https://github.com/arun-gupta/javaee7-samples/tree/master/jaxrs/jaxrs-endpoint" target="_blank">https://github.com/arun-gupta/javaee7-samples/tree/master/jaxrs/jaxrs-endpoint</a><br>
is still giving the same error.<br>
<br>
Any idea ?<br>
<span class="HOEnZb"><font color="#888888"><br>
Arun<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
On Tue, Nov 5, 2013 at 3:35 AM, Stuart Douglas<br>
<<a href="mailto:stuart.w.douglas@gmail.com">stuart.w.douglas@gmail.com</a>> wrote:<br>
> org.jboss.resteasy:resteasy-client:3.0.5.Final<br>
><br>
><br>
> On Tue, Nov 5, 2013 at 12:33 PM, Arun Gupta <<a href="mailto:arun.gupta@gmail.com">arun.gupta@gmail.com</a>> wrote:<br>
>><br>
>> I've written a JAX-RS unit test using JAX-RS Client API:<br>
>><br>
>> @BeforeClass<br>
>> public static void setupClass() {<br>
>> Client client = ClientBuilder.newClient();<br>
>> target =<br>
>> client.target("<a href="http://localhost:8080/jaxrs-endpoint/webresources/fruit" target="_blank">http://localhost:8080/jaxrs-endpoint/webresources/fruit</a>");<br>
>> }<br>
>><br>
>> But its failing with the exception:<br>
>><br>
>> org.javaee7.jaxrs.endpoint.MyResourceTest Time elapsed: 0.124 sec <<<<br>
>> ERROR!<br>
>> java.lang.RuntimeException: java.lang.ClassNotFoundException:<br>
>> org.glassfish.jersey.client.JerseyClientBuilder<br>
>> at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)<br>
>> at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114)<br>
>> at<br>
>> org.javaee7.jaxrs.endpoint.MyResourceTest.setupClass(MyResourceTest.java:51)<br>
>><br>
>> What <dependency> should be included in the test classpath so that<br>
>> appropriate ClientBuilder instance is found ?<br>
>><br>
>> Arun<br>
>><br>
>> --<br>
>> <a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
>> <a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
>> _______________________________________________<br>
>> wildfly-dev mailing list<br>
>> <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
>> <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
><br>
><br>
<br>
<br>
<br>
--<br>
<a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
<a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
</div></div></blockquote></div><br></div>