None
Tuesday, 28 January 2025 · 1 message
U
unknown28 Jan 2025 15:38 #
I general, the integration of JaxRx has been simplified and
generalized a lot since Version 6.1. If you're working with the sources, you can checkout the main and api package and directly run the contained basexrest(.bat) script. Otherwise, you'll need to...
1. get basex.jar and basex-jar.api:
http://basex.org/download
2. get one of the start scripts (win or linux/mac):
https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/basexrest.bat https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/basexrest
3. get the external libraries referenced from the start script: https://svn.uni-konstanz.de/dbis/basex/trunk/api/lib/
Hope this helps,
Christian
2010/12/13 Mahender Didwania <mahender at didwania.co.uk>:
Quoted text · 6 lines
> Hi, > > Two things: > > 1. > Earlier I was using version 6.2.9 and the class StartJaxRx.java seemed to=
work fine. =A0The need is to have the ability to invoke the server from a = script.
Quoted text · 2 lines
> > I can't find the StartJaxRx in 6.3.3 any more. =A0Using the old class wit=
h 6.3.3, the server says it started up fine, but when I attempt to access i= t over HTTP/REST, I get error for /basex/jax-rx (note that /basex/ is okay)= :
Quoted text · 4 lines
> > Problem accessing /basex/jax-rx/. Reason: > > =A0 =A0tried to access method org.basex.server.ClientSession.execute(Ljav=
a/lang/String;Ljava/io/OutputStream;)V from class org.basex.api.jaxrx.BXOut= put
Quoted text · 4 lines
> > Caused by: > > java.lang.IllegalAccessError: tried to access method org.basex.server.Cli=
entSession.execute(Ljava/lang/String;Ljava/io/OutputStream;)V from class or= g.basex.api.jaxrx.BXOutput
Quoted text · 5 lines
> =A0 =A0 =A0 =A0at org.basex.api.jaxrx.BXOutput.exec(BXOutput.java:62) > =A0 =A0 =A0 =A0at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:61) > =A0 =A0 =A0 =A0at org.basex.api.jaxrx.BXCode.run(BXCode.java:56) > =A0 =A0 =A0 =A0at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:51) > =A0 =A0 =A0 =A0at com.sun.jersey.core.impl.provider.entity.StreamingOutpu=
tProvider.writeTo(StreamingOutputProvider.java:71)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.core.impl.provider.entity.StreamingOutpu=
tProvider.writeTo(StreamingOutputProvider.java:57)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.spi.container.ContainerResponse.write(Co=
ntainerResponse.java:299)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.server.impl.application.WebApplicationIm=
pl._handleRequest(WebApplicationImpl.java:1326)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.server.impl.application.WebApplicationIm=
pl.handleRequest(WebApplicationImpl.java:1239)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.server.impl.application.WebApplicationIm=
pl.handleRequest(WebApplicationImpl.java:1229)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.spi.container.servlet.WebComponent.servi=
ce(WebComponent.java:420)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.spi.container.servlet.ServletContainer.s=
ervice(ServletContainer.java:497)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at com.sun.jersey.spi.container.servlet.ServletContainer.s=
ervice(ServletContainer.java:684)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at javax.servlet.http.HttpServlet.service(HttpServlet.java=
:820)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.servlet.ServletHolder.handle(ServletH=
older.java:511)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.servlet.ServletHandler.handle(Servlet=
Handler.java:401)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.servlet.SessionHandler.handle(Session=
Handler.java:182)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.handler.ContextHandler.handle(Context=
Handler.java:766)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.handler.HandlerWrapper.handle(Handler=
Wrapper.java:152)
Quoted text · 2 lines
> =A0 =A0 =A0 =A0at org.mortbay.jetty.Server.handle(Server.java:326) > =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpConnection.handleRequest(HttpConn=
ection.java:542)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpConnection$RequestHandler.headerC=
omplete(HttpConnection.java:928)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:=
549)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.=
java:212)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.HttpConnection.handle(HttpConnection.=
java:404)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.jetty.bio.SocketConnector$Connection.run(So=
cketConnector.java:228)
Quoted text · 1 line
> =A0 =A0 =A0 =A0at org.mortbay.thread.QueuedThreadPool$PoolThread.run(Queu=
edThreadPool.java:582)
Quoted text · 4 lines
> > > 2. > For version 6.1, you provide various files, including a .zip, on your web=
site; for 6.3.3, you only provide basex.jar and basex-api.jar. =A0I had ear= lier created my own maven build to include all dependencies (including the = ones from java.net repository), but as noted above, I cannot get 6.3.3 to w= ork. =A0Could you please provide a .zip file for every release like you hav= e for 6.1 on your web-site (merely replacing BaseX61.jar with basex.jar and= BaseX61-jaxrx.jar with basex-api.jar (for 6.3.3 versions) does not seem to= help)?
Quoted text · 8 lines
> > Thanks, > Mahender. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
⚡Generated with XQuery