+1, this would make more sense.
On Tue, Nov 5, 2013 at 5:03 AM, Bill Burke <bburke(a)redhat.com> wrote:
Resteasy-client should be an implicit dependency. Also,
resteasy-client
shouldn't really be a separate module. For the Resteasy distro our
AS7/Wildfly patch zip has resteasy-client as part of the resteasy-jaxrs
module. The reason for this is AS7 and EAP are hardcoded to implicitly
import specific modules and I can't add new ones.
May I patch Wildfly to remove the resteasy-client module and move the
artifact to the resteasy-jaxrs module so as to be consistent with the
Resteasy distro?
On 11/5/2013 6:48 AM, Arun Gupta wrote:
> 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(a)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(a)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-end...
>>> is still giving the same error.
>>>
>>> Any idea ?
>>>
>>> Arun
>>>
>>>
>>> On Tue, Nov 5, 2013 at 3:35 AM, Stuart Douglas
>>> <stuart.w.douglas(a)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(a)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(a)lists.jboss.org
>>>>>
https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>>
http://blog.arungupta.me
>>>
http://twitter.com/arungupta
>>
>>
>
>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com
_______________________________________________
wildfly-dev mailing list
wildfly-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/wildfly-dev