This was the issue. Thanks Thierry. Thierry Boileau <thboileau <at> gmail.com> writes:
> > Sean, > > I forget : can you try to define the JAR_URI with the file path and not > the file URI (check the constructor ;) ), such as : I don't intend to make any excuses for my inability to read JavaDoc correctly, but this does beg a question. Should Directory and FileRepresentation constructors be consistent since they are dealing with similar things. Should they both take a URI or should they both take a File/path? BTW, I was getting exceptions occassionally but they were getting thrown later in the pipeline when getRepresentation was being called. I was confused by that, and wrote it off as a result of canceling the download. I was further confused by caching which I hadn't accounted for. Basically, I was just confused :-) But the lesson here for me is to use the FileRepresentation constructor that accepts a File because File construction will fail fast and in the application code. Sean > public static final String JAR_URI = "//home/slandis/restlet-1.0rc3/lib/org.restlet.jar"; > > Best regards, > Thierry > > Sean Landis a écrit : > > Pardon, > > > > It did sort of work... > > > > When I selected http://wasatch:8182/jar I got a download dialog but: > > 1) the name of the file was "jar", not "org.restlet.jar", > > 2) The file that gets 'downloaded' is empty. > > > > Sean > > > > > >