Hi Brian

>>
>> By the way, I tried with just a single host this morning, using localhost
>> addresses:
>>
>> http://127.0.0.1/rws/mobile/devices
>>
>> for IPv4, and
>>
>> http://[::1]/rws/mobile/devices
>>
>> for IPv6.  IPv4 worked, IPv6 failed.  Hopefully that will make your
>> investigation a little easier -- it does not require setting up a IPv6
>> network, the problem can be reproduced on a single system with IPv6
>> configured.
>>
> Thanks, this is helpful; I'll try experimenting on my laptop.
> Just not sure at the moment when exactly I can get to it, as I now how
> few issues to look at, will try asap
>

It appears that it works fine with CXF 2.4.1(-SNAPSHOT) and thus
should also work OK with CXF 2.3.5.
I've done a quick test locally,

Server is started at "http://[::1]:8080/";
Root resource:
@Path("bookstore")
public class BookStore {
    @Context
    private UriInfo ui;

    @Path("books/{id}")
    public Book getBook(@PathParam("id") String id) {
        System.out.println(ui.getAbsolutePath().toString());
    }
}

proxy code:
URI uri = URI.create("http://[::1]:"; + PORT + "/");
URL url = uri.toURL();
BookStore store = JAXRSClientFactory.create(url.toString(), BookStore.class);
Book book = store.getBook("123");
assertEquals(123L, book.getId());


which works and the above pritnln prints:

http://[::1]:9000/bookstore/books/123/

Something must've been fixed in 2.4.1, give it a try please when it's released

thanks, Sergey

>
>> Brian
>>
-- 
Sergey Beryozkin

Application Integration Division of Talend
http://sberyozkin.blogspot.com

Reply via email to