>From a brief look at your code, it looks like you're mixing up Restlets with ServerResources. Restlets are created and added to the routing structure in createInboundRoot, and typically have a lifetime that spans that of the application, while a new ServerResource instance is created for every request that is routed to its class. (You probably don't want to create a new Directory each time a RootRoute is created to handle a request, but that's what would happen at the moment.)
You're also creating a Directory instance and not using it in createInboundRoot. A Directory is a Restlet that you can attach to; just creating it doesn't do anything. I suggest working from a tutorial example that *does* work for you, and modifying it incrementally until something happens that you don't understand. Then you can ask why that change broke things. --tim On Wed, Aug 6, 2014 at 1:40 PM, Shai Levit <[email protected]> wrote: > So I am working on a more complex format from the tutorials but running > into some odd issues and/or confusions that I don't quite understand. > To simplify things, I attached my code. There are 3 java files (Main, > Tracer and RootRoute). > I am trying to get a better understanding on Router, Directory, > Application, Root, Restlet and context. > The code compiles fine, but I get an error: > > The filter org.restlet.engine.application.RangeFilter@5c4ef185 was > executed without a next Restlet attached to it. > 2014-08-06 13:37:42 0:0:0:0:0:0:0:1 - - 8183 > GET / - 500 486 0 10 > http://localhost:8183 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) > AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36 > - > > ------------------------------------------------------ > > http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086335 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3086345

