I found my configuration error: bad WEBPATH in my user-specific .basex file.
I had, for whatever reason (maybe through some bad copying at some point), set the WEBPATH to a bogus directory. Once I set it to the actual webapp location then everything works as expected.
A bit of startup diagnostics here would have helped, e.g. "WEBPATH directory 'foo/bar' does not exist". I'll create an issue and try to circle back to implementing a fix once my current crunch has passed.
Cheers,
E.
————— Eliot Kimber, Owner Contrext, LLC http://contrext.com
On 4/12/15, 8:33 AM, "Eliot Kimber" ekimber@contrext.com wrote:
Christian,
I'm using the Zip distribution.
The REST service works and WebDAV works, it is only RESTXQ that doesn't appear to be correctly configured. So either I'm missing some essential configuration detail or there's an OS X-specific problem that I'm tripping over.
Thanks,
Eliot ————— Eliot Kimber, Owner Contrext, LLC http://contrext.com
On 4/11/15, 6:17 PM, "Christian Grün" christian.gruen@gmail.com wrote:
Hi Eliot,
If I understand the docs, after running the basexhttp command, I should get the sample HTML start page returned by page:start() function defined in the restxq.xqm file when I go to http://localhost:8984
However I'm not getting that page, I'm getting a 404 response from the Jetty server:
Which of our distributions (zip, war, ...) have you been using so far?
I verified that restxq.xqm is a loaded module:
repo list
Name Version Type Path
- Internal .DS_Store
restxq - Internal restxq.xqm
restxq.xqm must indeed be located in the webapp directory, and not in the repository. Maybe you can check out the BaseX ZIP archive, it should run out of the box.
Hope this helps, Christian