Christy Ring | 19 Aug 09:45

Virtual hosts - no domain only ip address

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:

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
christy.ring <at> vennetics.com


Gmane