Hi Huib,
could you please provide the HTTP request you sent with curl, too.
Greetings, Dimitar
Am Dienstag 31 Mai 2011, 08:29:25 schrieb Huib Verwey:
Hi,
I'm trying to start a BaseX db instance from my Java desktop application using
db = new JaxRxServer();
The log says:
BaseX 6.6.2 [Server] Server is gestart. 2011-05-31 08:16:03.666:INFO::Logging to STDERR via org.mortbay.log.StdErrLog 2011-05-31 08:16:03.704:INFO::jetty-6.1.26 2011-05-31 08:16:03.881:INFO::Started SocketConnector@0.0.0.0:8984 JAX-RX Server is gestart
And when a curl request is made the log says:
31-mei-2011 8:17:28 com.sun.jersey.api.core.PackagesResourceConfig init INFO: Scanning for root resource and provider classes in the packages: org.jaxrx.resource 31-mei-2011 8:17:28 com.sun.jersey.api.core.ScanningResourceConfig logClasses INFO: Root resource classes found: class org.jaxrx.resource.XMLResource class org.jaxrx.resource.JaxRxResource 31-mei-2011 8:17:28 com.sun.jersey.api.core.ScanningResourceConfig init INFO: No provider classes found. 31-mei-2011 8:17:28 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate INFO: Initiating Jersey application, version 'Jersey: 1.6 03/25/2011 01:14 PM'
I can connect to the server using bin/basexclient and it serves all the data from my local BaseX instance I have used before, but when I try to access the JaxRxServer using curl I get:
HTTP/1.1 400 Bad Request Content-Type: text/plain Transfer-Encoding: chunked Server: Jetty(6.1.26)
cvc-elt.1: Cannot find the declaration of element 'query'.
Does anyone know what I need to do to get this working? I am running a maven project with dependencies on basex-6.6.2 and basex-api-6.6.2.
Hartelijke groet,
Huib Verweij.
-- Drs. Huib Verweij Senior software developer - The Language Archive Max Planck Institute for Psycholinguistics P.O. Box 310 6500 AH Nijmegen The Netherlands t +31-24-3521911 e huib.verwey@mpi.nlmailto:huib.verwey@mpi.nl w http://www.mpi.nl/