(I sent this message yesterday, but it didn't get through. Apologies if you get duplicates.)

Hi Christy,

Christy Ring wrote:
Hi all,

I am running a VM on a host, currently I have a work example that is routing requests to a resource at https://localhost:8183/jbox/v1/

The virtual machine can see the host through the following ip address 192.168.0.2

From the VM when I send a request to the resource https://192.168.0.2:8183/jbox/v1/ I get the following:

com.vennetics.jbox.fs.api.v1.WidgetApplication1047055737)[WARNING|Thread-2|8:35:58.0959]: A resource should normally have at least one variant added by calling getVariants().add() in the constructor. Check your resource "https://192.168.0.2:8183/jbox/v1/";.

org.restlet.Component (1524987604)[INFO|Thread-2|8:35:58.0968]: 2008-08-19 08:35:58 127.0.0.1 - - 8183 GET /jbox/v1/ - 404 3310 https://192.168.0.2:8183 Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.2) -


I expect this to work by defining a VirtualHost, even though I have no domain defined. I have defined my VirtualHost as follows:

It doesn't sound like it's related to the VirtualHost, but to the
Resource class behind /jbox/v1/. Perhaps you haven't added any variant.
This can be done, for example, by adding something like this in the
'init' method of your Resource class:
        getVariants().add(new Variant(MediaType.TEXT_HTML));

The media type will depend on the representations you wish to offer.


Best wishes,

Bruno.

Reply via email to