[wildfly-dev] JAX-RS Client API maven test <dependency>

Arun Gupta arun.gupta at gmail.com
Tue Nov 5 06:48:50 EST 2013


Sleeping only 2 hrs in the red eye flight and jet lag kicking is not helpful :-)

But at least the test is running now, failing but that's a different problem!

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



-- 
http://blog.arungupta.me
http://twitter.com/arungupta


More information about the wildfly-dev mailing list