|
Mail sent on the 08/20 and
apparently lost. Best regards,
Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com |
--- Begin Message ---Hi Christy,this message appears when a resource (i.e. an instance of a subclass of "org.restlet.resource.Resource") is targeted and has an empty list of supported variants. Could you check the routes you define in the WidgetApplication#createRoot methods, and the resources you have attached to these routes? On of them does not declare its supported variants. This page gives more explanations about resources and variants: http://www.restlet.org/documentation/1.1/firstResourceBest regards, Thierry Boileau -- Restlet ~ Core developer ~ http://www.restlet.org <http://www.restlet.org/>Noelios Technologies ~ Co-founder ~ http://www.noelios.com <http://www.noelios.com/>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.2From 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:I have also tried setting the server address directly. VirtualHost host = new VirtualHost(component.getContext()); host.setHostDomain("192.168.0.2|localhost"); host.setServerAddress("192.168.0.2"); host.setHostPort("8183");host.attach("/jbox/v1", new com.vennetics.jbox.fs.api.v1.WidgetApplication());component.getHosts().add(host) Any ideas much appreciated, Thanks in advance. Christy Ring [EMAIL PROTECTED]
--- End Message ---

