<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">&lt;<a href="mailto:arun.gupta@gmail.com" target="_blank">arun.gupta@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That&#39;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>
&lt;<a href="mailto:stuart.w.douglas@gmail.com">stuart.w.douglas@gmail.com</a>&gt; wrote:<br>
&gt; org.jboss.resteasy:resteasy-client:3.0.5.Final<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Nov 5, 2013 at 12:33 PM, Arun Gupta &lt;<a href="mailto:arun.gupta@gmail.com">arun.gupta@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;ve written a JAX-RS unit test using JAX-RS Client API:<br>
&gt;&gt;<br>
&gt;&gt;     @BeforeClass<br>
&gt;&gt;     public static void setupClass() {<br>
&gt;&gt;         Client client = ClientBuilder.newClient();<br>
&gt;&gt;         target =<br>
&gt;&gt; client.target(&quot;<a href="http://localhost:8080/jaxrs-endpoint/webresources/fruit" target="_blank">http://localhost:8080/jaxrs-endpoint/webresources/fruit</a>&quot;);<br>
&gt;&gt;     }<br>
&gt;&gt;<br>
&gt;&gt; But its failing with the exception:<br>
&gt;&gt;<br>
&gt;&gt; org.javaee7.jaxrs.endpoint.MyResourceTest  Time elapsed: 0.124 sec  &lt;&lt;&lt;<br>
&gt;&gt; ERROR!<br>
&gt;&gt; java.lang.RuntimeException: java.lang.ClassNotFoundException:<br>
&gt;&gt; org.glassfish.jersey.client.JerseyClientBuilder<br>
&gt;&gt;     at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:103)<br>
&gt;&gt;     at javax.ws.rs.client.ClientBuilder.newClient(ClientBuilder.java:114)<br>
&gt;&gt;     at<br>
&gt;&gt; org.javaee7.jaxrs.endpoint.MyResourceTest.setupClass(MyResourceTest.java:51)<br>
&gt;&gt;<br>
&gt;&gt; What &lt;dependency&gt; should be included in the test classpath so that<br>
&gt;&gt; appropriate ClientBuilder instance is found ?<br>
&gt;&gt;<br>
&gt;&gt; Arun<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; <a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a><br>
&gt;&gt; <a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; wildfly-dev mailing list<br>
&gt;&gt; <a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br>
&gt;<br>
&gt;<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>