Hi all, and URL Rewriting/Request handling question
Tuesday, 22 January 2013 · 2 messages
JS
Jay Straw22 Jan 2013 10:14 #
Hi all,
I've been developing in eXist since 2008, and I'm now trying out your BaseX.
I'm impressed so far, but how can I perform URL rewriting? I've tried using Jetty's Rewrite Handler via the example code at
http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler but then the server fails to start, it simply dumps with:
$ sh bin/basexhttp
org.eclipse.jetty.rewrite.handler.RewriteHandler
So I figure I need to compile it in (I grabbed from github and built with maven, but didn't know how to build the http server and downloaded the 5meg zip). Not sure how to do that.
I'm not a Java guy at the moment, so any pointers would be very helpful.
Thanks everybody!
Jay
CG
Christian Grün22 Jan 2013 10:47 #
Hi Jay,
Quoted text · Jay Straw · 1 line
> I've been developing in eXist since 2008, and I'm now trying out your BaseX.
welcome!
Quoted text · Jay Straw · 4 lines
> I'm impressed so far, but how can I perform URL rewriting? I've tried using > Jetty's Rewrite Handler via the example code at > http://wiki.eclipse.org/Jetty/Feature/Rewrite_Handler but then the server > fails to start, it simply dumps with:
If you want some more debugging feedback, you could try the -d command-line flag [1]:
$ sh bin/basexhttp -dQuoted text · Jay Straw · 5 lines
> So I figure I need to compile it in (I grabbed from github and built with > maven, but didn't know how to build the http server and downloaded the 5meg > zip). Not sure how to do that. > > I'm not a Java guy at the moment, so any pointers would be very helpful.
If you want to build the HTTP server, you need to download both the "basex" and "basex-api" repository. You could have a look at the Developer Section in our Wiki if you haven’t done so already [2].
Feel free to ask for more details,
Christian
[1] http://docs.basex.org/wiki/Startup_Options#BaseX_HTTP_Server [2] http://docs.basex.org/wiki/Developing
Written for BaseX 7.5. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery