Embedded BaseX JaxRxServer started from Java desktop app.
Tuesday, 31 May 2011 · 13 messages · last reply 8 Jun 2011
HV
Huib Verwey31 May 2011 08:29 #
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 at 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 at mpi.nl<mailto:huib.verwey at mpi.nl>
w http://www.mpi.nl/
DP
Dimitar Popov31 May 2011 08:40 #
Hi Huib,
could you please provide the HTTP request you sent with curl, too.
Greetings,
Dimitar
Quoted text · 08:29:25 · 66 lines
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 at 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 at mpi.nl<mailto:huib.verwey at mpi.nl> > w http://www.mpi.nl/
HV
Huib Verwey31 May 2011 09:26 #
Sure:
curl -i -X POST -H "Content-Type: application/query+xml" -d "<query xmlns='http://jax-rx.sourceforge.net'><text>count(/user)</text></query>" "admin:admin@localhost:8984/basex/jax-rx/lexus/"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 at mpi.nl<mailto:huib.verwey at mpi.nl>
w http://www.mpi.nl/
Op 31 mei 2011, om 08:40 heeft Dimitar Popov het volgende geschreven:
Hi Huib,
could you please provide the HTTP request you sent with curl, too.
Greetings,
Dimitar
Quoted text · 08:29:25 · 1 line
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 at 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 at mpi.nl<mailto:huib.verwey at mpi.nl>
w http://www.mpi.nl/
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk at mailman.uni-konstanz.de<mailto:BaseX-Talk at mailman.uni-konstanz.de> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
DP
Dimitar Popov31 May 2011 10:31 #
Hi Huib,
I can't reproduce the error when I start the JAX-RX server. But I "googled" the error message and I suspect that the SAX parser cannot validate the XML request. Could you try using a GET request instead of POST so that there is no XML request?
e.g. curl -i -X GET "admin:admin@localhost:8984/basex/jax-
rx/lexus?query=count(/user)"
Quoted text · 09:26:13 · 101 lines
Am Dienstag 31 Mai 2011, 09:26:13 schrieb Huib Verwey: > Sure: > > curl -i -X POST -H "Content-Type: application/query+xml" -d "<query > xmlns='http://jax-rx.sourceforge.net'><text>count(/user)</text></query>" > "admin:admin@localhost:8984/basex/jax-rx/lexus/" > > 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 at mpi.nl<mailto:huib.verwey at mpi.nl> > w http://www.mpi.nl/ > > Op 31 mei 2011, om 08:40 heeft Dimitar Popov het volgende geschreven: > > 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 at 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 at mpi.nl<mailto:huib.verwey at mpi.nl> > w http://www.mpi.nl/ > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de<mailto:BaseX-Talk at mailman.uni-konstanz.d > e> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
HV
Huib Verwey31 May 2011 10:57 #
Hi Dimitar,
the GET query works!
huib.
Op 31 mei 2011, om 10:31 heeft Dimitar Popov het volgende geschreven:
Quoted text · Dimitar Popov · 112 lines
> Hi Huib, > > I can't reproduce the error when I start the JAX-RX server. But I "googled" > the error message and I suspect that the SAX parser cannot validate the XML > request. Could you try using a GET request instead of POST so that there is no > XML request? > > e.g. curl -i -X GET "admin:admin@localhost:8984/basex/jax- > rx/lexus?query=count(/user)" > > Am Dienstag 31 Mai 2011, 09:26:13 schrieb Huib Verwey: >> Sure: >> >> curl -i -X POST -H "Content-Type: application/query+xml" -d "<query >> xmlns='http://jax-rx.sourceforge.net'><text>count(/user)</text></query>" >> "admin:admin@localhost:8984/basex/jax-rx/lexus/" >> >> 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 at mpi.nl<mailto:huib.verwey at mpi.nl> >> w http://www.mpi.nl/ >> >> Op 31 mei 2011, om 08:40 heeft Dimitar Popov het volgende geschreven: >> >> 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 at 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 at mpi.nl<mailto:huib.verwey at mpi.nl> >> w http://www.mpi.nl/ >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de<mailto:BaseX-Talk at mailman.uni-konstanz.d >> e> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
HV
Huib Verweij31 May 2011 12:59 #
Op 31 mei 2011, om 10:57 heeft Huib Verwey het volgende geschreven:
Quoted text · Huib Verwey · 2 lines
> > the GET query works!
But POST does not.
Just to be clear: all I did was add the two dependencies for basex and basex-api and " db = new JaxRxServer(); " in the java code. No configuration, nothing.
huib.
DP
Dimitar Popov31 May 2011 13:00 #
Hi Huib,
could you try the POST request, but without specifying the namespace of the query element:
url -i -X POST -H "Content-Type: application/query+xml" -d
"<query><text>count(/user)</text></query>"
"admin:admin@localhost:8984/basex/jax-rx/lexus/"
Dimitar
Quoted text · 12:59:25 · 11 lines
Am Dienstag 31 Mai 2011, 12:59:25 schrieb Huib Verweij: > Op 31 mei 2011, om 10:57 heeft Huib Verwey het volgende geschreven: > > the GET query works! > > But POST does not. > > Just to be clear: all I did was add the two dependencies for basex and > basex-api and " db = new JaxRxServer(); " in the java code. No > configuration, nothing. > > huib.
HV
Huib Verweij31 May 2011 13:14 #
Op 31 mei 2011, om 13:00 heeft Dimitar Popov het volgende geschreven:
Quoted text · Dimitar Popov · 6 lines
> could you try the POST request, but without specifying the namespace of the > query element: > > url -i -X POST -H "Content-Type: application/query+xml" -d > "<query><text>count(/user)</text></query>" > "admin:admin@localhost:8984/basex/jax-rx/lexus/"
Sure.
$ curl -i -X POST -H "Content-Type: application/query+xml" -d "<query><text>count(/user)</text></query>" "admin:admin@localhost:8984/basex/jax-rx/lexus/" 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'.
Same result unfortunately.
Hartelijke groet,
Huib Verweij.
HV
Huib Verwey3 Jun 2011 11:12 #
Hi Dimitar,
I've just updated from the Git repository and am now running basex-6.6.3-SNAPSHOT. Unfortunately the problem persists, both for <query> with and without namespace.
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 at mpi.nl<mailto:huib.verwey at mpi.nl>
w http://www.mpi.nl/
Op 31 mei 2011, om 13:14 heeft Huib Verweij het volgende geschreven:
Op 31 mei 2011, om 13:00 heeft Dimitar Popov het volgende geschreven:
could you try the POST request, but without specifying the namespace of the query element:
url -i -X POST -H "Content-Type: application/query+xml" -d
"<query><text>count(/user)</text></query>"
"admin:admin@localhost:8984/basex/jax-rx/lexus/"
CG
Christian Grün3 Jun 2011 13:52 #
Huib,
unfortunately, I didn't manage to reproduce the problem either. Attached you see what I get with the latest code base, a single "new JaxRxServer()" call and your POST request (on Windows 7).
Christian
______________
curl -i -X POST -H "Content-Type: application/query+xml" -d "<query xmlns='http://jax-rx.sourceforge.net'><text>count(/user)</text></query>" "admin:admin@localhost:8984/basex/jax-rx/lexus/"
HTTP/1.1 404 Not Found
Content-Type: text/plain
Transfer-Encoding: chunked
Server: Jetty(6.1.25)
Database 'lexus' is niet gevonden.
______________
curl -i -X POST -H "Content-Type: application/query+xml" -d "<query xmlns='http://jax-rx.sourceforge.net'><text>count(/)</text></query>" "admin:admin@localhost:8984/basex/jax-rx/input/"
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: 110
Server: Jetty(6.1.25)
<jax-rx:results
xmlns:jax-rx="http://jax-rx.sourceforge.net"><jax-rx:result>1</jax-rx:result></jax-rx:results>Quoted text · Huib Verwey · 39 lines
On Fri, Jun 3, 2011 at 11:12 AM, Huib Verwey <Huib.Verwey at mpi.nl> wrote: > Hi Dimitar, > I've just updated from the Git repository and am now running > basex-6.6.3-SNAPSHOT. Unfortunately the problem persists, both for <query> > with and without namespace. > 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 at mpi.nl > w http://www.mpi.nl/ > > Op 31 mei 2011, om 13:14 heeft Huib Verweij het volgende geschreven: > > Op 31 mei 2011, om 13:00 heeft Dimitar Popov het volgende geschreven: > > could you try the POST request, but without specifying the namespace of the > > query element: > > url -i -X POST -H "Content-Type: application/query+xml" -d > > "<query><text>count(/user)</text></query>" > > "admin:admin@localhost:8984/basex/jax-rx/lexus/" > > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
HV
Huib Verweij3 Jun 2011 14:30 #
Hi Christian,
Op 3 jun 2011, om 13:52 heeft Christian Grün het volgende geschreven:
Quoted text · Christian Grün · 5 lines
> Huib, > > unfortunately, I didn't manage to reproduce the problem either. > Attached you see what I get with the latest code base, a single "new > JaxRxServer()" call and your POST request (on Windows 7).
so it only happens on my machine, I didn't know that yet. Alright then, I'll go and experiment.
A quick question: just specifying the basex-6.6.3-SNAPSHOT and basex-api-6.6.3-SNAPSHOT should be enough to get it working right?
Hartelijke groet,
Huib Verweij.
CG
Christian Grün3 Jun 2011 14:33 #
Quoted text · Huib Verweij · 1 line
> A quick question: just specifying the basex-6.6.3-SNAPSHOT and basex-api-6.6.3-SNAPSHOT should be enough to get it working right?
I guess so.. Looking forward to your feedback (..e.g.: what's the oldest code version that leads to this behavior?),
Christian
Quoted text · Huib Verweij · 10 lines
> > Hartelijke groet, > > Huib Verweij. > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
HV
Huib Verwey8 Jun 2011 14:38 #
Hi.
the problem was probably caused by some (transitive) dependency conflict in my own project. I had way too many (inherited) dependencies for my small desktop-app project and after I removed them the error was gone.
I now have another error ;-).
Now it says:
========================================
8-jun-2011 14:34:03 com.sun.jersey.api.core.PackagesResourceConfig init INFO: Scanning for root resource and provider classes in the packages: org.jaxrx.resource
8-jun-2011 14:34:04 com.sun.jersey.api.core.ScanningResourceConfig logClasses INFO: Root resource classes found:
class org.jaxrx.resource.JaxRxResource
class org.jaxrx.resource.XMLResource
8-jun-2011 14:34:04 com.sun.jersey.api.core.ScanningResourceConfig init INFO: No provider classes found.
8-jun-2011 14:34:04 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate INFO: Initiating Jersey application, version 'Jersey: 1.6 03/25/2011 01:14 PM' 8-jun-2011 14:34:04 com.sun.jersey.spi.container.ContainerResponse write SEVERE: A message body writer for Java class org.basex.api.jaxrx.BXJaxRx$2, and Java type class org.basex.api.jaxrx.BXJaxRx$2, and MIME media type text/xml; omit-xml-declaration=no was not found 8-jun-2011 14:34:04 com.sun.jersey.spi.container.ContainerResponse write SEVERE: The registered message body writers compatible with the MIME media type are: */* ->
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter
8-jun-2011 14:34:04 com.sun.jersey.spi.container.ContainerResponse logException
SEVERE: Mapped exception to response: 500 (Internal Server Error)
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class org.basex.api.jaxrx.BXJaxRx$2, and Java type class org.basex.api.jaxrx.BXJaxRx$2, and MIME media type text/xml; omit-xml-declaration=no was not found
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:285)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1310)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1223)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1213)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java class org.basex.api.jaxrx.BXJaxRx$2, and Java type class org.basex.api.jaxrx.BXJaxRx$2, and MIME media type text/xml; omit-xml-declaration=no was not found
... 21 more========================================
Any ideas on what might be causing this or where I could search for a solution are highly appreciated.
Thanks for the support again.
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 at mpi.nl<mailto:huib.verwey at mpi.nl>
w http://www.mpi.nl/
Op 3 jun 2011, om 14:33 heeft Christian Grün het volgende geschreven:
A quick question: just specifying the basex-6.6.3-SNAPSHOT and basex-api-6.6.3-SNAPSHOT should be enough to get it working right?
I guess so.. Looking forward to your feedback (..e.g.: what's the oldest code version that leads to this behavior?),
Christian
Written for BaseX 6.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery