Hello Christian,
I suspect that the docDir reference is not absolute (i.e. does not
beginwith "file:///", or "clap:///" etc.) Is it true?
Best regards,
Thierry Boileau
--
Restlet ~ Core developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
Hi everyone,
I was wondering how to place a simple html file in the root directory of
my application which is quite similar to the "First Resource" example.
If I use this code
router.attach("/", new Directory(getContext(), docDir));
where docDir refers to the location of the documentation directory, I
get the following error:
java.lang.IllegalArgumentException: Relative references are only usable
when a base reference is set.
Thanks in advance!
Chris