I'm trying to set up some basic Web services using the basexhttp server.

I'm on OS X.

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:

HTTP ERROR 404Problem accessing /. Reason:
    No function found that matches the request.
Powered by Jetty://


I verified that restxq.xqm is a loaded module:

> repo list
Name    Version  Type      Path
-------------------------------------
       -        Internal  .DS_Store
restxq  -        Internal  restxq.xqm


2 package(s).
> 

I'm sure this worked when I first started playing with BaseX and installed
it initially. I tried both 8.0.3 (the first version I used) and 8.1 with
no difference.

I must have done something to the configuration to cause this problem but
I don't see any obvious mistake on my part: I haven't knowingly changed
the web.xml or jetty.xml files and web.xml seems to clearly enable
handling of root URLs by the RESTXQ handler:

  <servlet>
    <servlet-name>RESTXQ</servlet-name>
    <servlet-class>org.basex.http.restxq.RestXqServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>RESTXQ</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>



The WebDAV service does work: I can retrieve files from specific databases
using the WeDAV url.

Any suggestions on where my configuration might be bad?

Thanks,

Eliot



—————
Eliot Kimber, Owner
Contrext, LLC
http://contrext.com



Reply via email to