(Apologies for my previous non-text email; trying again.)

I’m using restlet 1.1-RC2 with the ServerServlet extension on Oracle AS
10.1.3 with the web.xml configuration method.

I was able to successfully serve static files (included in the
'webapp/doc' directory within the WAR) using an instance of the Directory
class, as follows:

      // expose static API docs
      Directory docsDir = new Directory(getContext(), "war:///doc");
      router.attach("/doc/", docsDir);

My problem, however, is that the 'index.html' file within the 'webapp/doc'
folder is not served automatically by the NRE when I use the following URL
(instead the server returns 404):

      http://abc.com/mywar/doc

But it does work when I use the following explicit URL:

      http://abc.com/mywar/doc/index.html

Is there a configuration that needs to be set so that the Directory class
will return the index file when a parent URL is accessed? Using log
output, I have verified that Directory.getIndexName() does in fact return
"index".

Does anyone have a solution? Thanks,

    - Lu

Reply via email to