Michael,
Thank you immensely for your help. I didn't even think to update web.xml and so had no chance of this working. I know have a service in a distinct directory and static pages in a different directory, and I can at least control where they go.
Having said that, I found some things on startup that I didn't anticipate:
* From testing, it appears that the basexhttp server also starts the database server. From the options available in .basex, I was under the impression I had to start basexserver separately, but when I tried to run basexserver and subsequently basexhttp, the basexhttp server said the port was already in use.
* It's probably obvious to people who write RESTXQ code readily, but it seems worthwhile to note that the services run on the basexhttp server JVM, and not the basexserver JVM. Because I anticipate needing multiple databases, I'm trying to set up the server so that it can fork work over to the appropriate database. It would be nice if I could have XQUERY code running at the basexserver JVM.
* In my .basex file, I specify
HOST=localhost
PORT=1984
SERVERPORT=1984
SERVERHOST=localhost
Since it's the basexhttp that starts the basexserver, it's not clear to me which is considered the server, but nonetheless, somehow I'm able to get the above to at least partially function, though I'm confident that I did this wrong.
* I noticed there's a REST and a RESTXQ, for most part would I always want to use RESTXQ?
I hope those who write the documentation do not take offense to my questions. I'm not sure I would have thought to document it or how to write it in such a way that it doesn't get asked. This project is one of the best documented in the OSS community, and even better than some products for which money changes hands.