I am getting ever so slightly closer to figuring this out. I made one change that actually fixed the issue, but I don't think it's the "right way" to do it. I edited my generated Action class GetDocumentAction and prefixed the value returned by getServiceName() with a forward slash.
Ex.
@Override
public String getServiceName() {
return "/" + Action.DEFAULT_SERVICE_NAME + "GetDocument";
}
I don't think this would work if the application wasn't running in the root context.
I've followed the code all the way down to the XMLHttpRequest class. It appears that the url passed in will be opened relative to the current context. In this case the Url is now prefixed with "/document" to represent the first part of my place token name.
There has got to be a better way...something I'm missing or overlooking - please anyone have any ideas?