Solved my own problem. 

My errornous code is:
 
Component component = new Component();
final Server server = new Server(Protocol.HTTP,port);
component.getServers().add(server);

VirtualHost vHost = new 
VirtualHost(component.getContext().createChildContext());
Application app = new Application(vHost.getContext()){
public Restlet createInboundRoot() {
        return new Directory("wwwRoot");
}};
vHost.attachDefault(app);
==============================
Solution: 
==============================
The problem is the creation of a childcontext on the virtualhost, it should be 
on the application.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2908531

Reply via email to