Problems in using BaseX REST server - IncompatibleClassChangeError javax.ws.rs.core.Response$Status does not implement the requested interface

Monday, 17 January 2011 · 7 messages · last reply 21 Oct 2011
PT
Pushkaraj Thorat17 Jan 2011 22:00 #
Hello, I am doing setup for REST enabled basex database with procedure mentioned in http://docs.basex.org/wiki/JAX-RX_API URL. Configuring & starting server and running failed due to class not found, but later I've modified the ./basexrest script as: (Included all the jars in lib folder) ######START #!/bin/bash # Path to this script PWD=dirname $0 # Paths to distributed files or source directories BASEX=$PWD/BaseX.jar BASEXAPI=$PWD/../lib/basex-api.jar # Classpath LIB=$PWD/../lib LIB_CP="" for JAR_FILE in $LIB/*.jar do LIB_CP="$LIB/$JAR_FILE:$LIB_CP" done CP=$BASEX:$BASEXAPI:$LIB_CP # Options for virtual machine VM=-Xmx1g # Run REST server java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@" ######END after this, server started successfully, hit the URL - http://localhost:8984/basex/jax-rx I am getting following exception: java.lang.IncompatibleClassChangeError: Class javax.ws.rs.core.Response$Status does not implement the requested interface javax.ws.rs.core.Response$StatusType at com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548) at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156) at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133) at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50) at org.basex.io.PrintOutput.flush(PrintOutput.java:126) at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206) at org.basex.data.Serializer.close(Serializer.java:219) at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96) at org.basex.api.jaxrx.BXCode.run(BXCode.java:53) at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53) at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299) Your help is appreciated. Thanks, Pushkaraj
MS
Michael Seiferle17 Jan 2011 23:16 #
Dear Pushkaraj, I am deeply sorry for you having to mess around with that erroneous startup scripts. We fixed them in both the ZIP & DMG distribution, feel free to download them again.
Quoted text · Pushkaraj Thorat · 1 line
>> java.lang.IncompatibleClassChangeError
We have been trying to reproduce this error - but to no avail. Your error message might have to do something with your Java Version; please make sure you are running the latest version. Hope this helps! In case it does not, feel free to ask for more. Kind regards Michael
Quoted text · Pushkaraj Thorat · 44 lines
Am 17.01.2011 um 22:00 schrieb Pushkaraj Thorat: > I am doing setup for REST enabled basex database with procedure mentioned in http://docs.basex.org/wiki/JAX-RX_API URL. > > Configuring & starting server and running failed due to class not found, but later I've modified the ./basexrest script as: (Included all the jars in lib folder) > > ######START > #!/bin/bash > # Path to this script > PWD=`dirname $0` > # Paths to distributed files or source directories > BASEX=$PWD/BaseX.jar > BASEXAPI=$PWD/../lib/basex-api.jar > # Classpath > LIB=$PWD/../lib > LIB_CP="" > for JAR_FILE in $LIB/*.jar > do > LIB_CP="$LIB/$JAR_FILE:$LIB_CP" > done > CP=$BASEX:$BASEXAPI:$LIB_CP > # Options for virtual machine > VM=-Xmx1g > # Run REST server > java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@" > > ######END > > after this, server started successfully, hit the URL - http://localhost:8984/basex/jax-rx I am getting following exception: > > java.lang.IncompatibleClassChangeError: Class javax.ws.rs.core.Response$Status does not implement the requested interface javax.ws.rs.core.Response$StatusType > at com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548) > at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156) > at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133) > at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50) > at org.basex.io.PrintOutput.flush(PrintOutput.java:126) > at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206) > at org.basex.data.Serializer.close(Serializer.java:219) > at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96) > at org.basex.api.jaxrx.BXCode.run(BXCode.java:53) > at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53) > at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) > at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) > at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299) >
PT
Pushkaraj Thorat19 Jan 2011 20:19 #
Thanks for your response Michael, I am using java 1.6 pushkaraj@toothless:~$ java -version java version "1.6.0_17" Java(TM) SE Runtime Environment (build 1.6.0_17-b04) Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode) pushkaraj@toothless:~$ Just to update, the rest server ran successfully on my windows machine. Not sure what problem faced on the linux(ubuntu) machine. I will debug once I get some time. Thanks, Pushkaraj
Quoted text · Michael Seiferle · 79 lines
On Tue, Jan 18, 2011 at 3:46 AM, Michael Seiferle < michael.seiferle at uni-konstanz.de> wrote: > Dear Pushkaraj, > > I am deeply sorry for you having to mess around with that erroneous startup > scripts. > We fixed them in both the ZIP & DMG distribution, feel free to download > them again. > > >> java.lang.IncompatibleClassChangeError > We have been trying to reproduce this error - but to no avail. > Your error message might have to do something with your Java Version; > please make sure you are running the latest version. > > Hope this helps! In case it does not, feel free to ask for more. > > Kind regards > > Michael > > Am 17.01.2011 um 22:00 schrieb Pushkaraj Thorat: > > > I am doing setup for REST enabled basex database with procedure mentioned > in http://docs.basex.org/wiki/JAX-RX_API URL. > > > > Configuring & starting server and running failed due to class not found, > but later I've modified the ./basexrest script as: (Included all the jars in > lib folder) > > > > ######START > > #!/bin/bash > > # Path to this script > > PWD=`dirname $0` > > # Paths to distributed files or source directories > > BASEX=$PWD/BaseX.jar > > BASEXAPI=$PWD/../lib/basex-api.jar > > # Classpath > > LIB=$PWD/../lib > > LIB_CP="" > > for JAR_FILE in $LIB/*.jar > > do > > LIB_CP="$LIB/$JAR_FILE:$LIB_CP" > > done > > CP=$BASEX:$BASEXAPI:$LIB_CP > > # Options for virtual machine > > VM=-Xmx1g > > # Run REST server > > java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@" > > > > ######END > > > > after this, server started successfully, hit the URL - > http://localhost:8984/basex/jax-rx I am getting following exception: > > > > java.lang.IncompatibleClassChangeError: Class > javax.ws.rs.core.Response$Status does not implement the requested interface > javax.ws.rs.core.Response$StatusType > > at > com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548) > > at > com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156) > > at > com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133) > > at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50) > > at org.basex.io.PrintOutput.flush(PrintOutput.java:126) > > at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206) > > at org.basex.data.Serializer.close(Serializer.java:219) > > at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96) > > at org.basex.api.jaxrx.BXCode.run(BXCode.java:53) > > at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53) > > at > com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) > > at > com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) > > at > com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299) > > > >
MS
Michael Seiferle20 Jan 2011 12:03 #
Hi Pushkaraj, thanks in return for your response. I will see if I can reproduce that in my VM; so far you are the first one to report this issue, I'll let you know what I can find. Kind regards Michael
Quoted text · Pushkaraj Thorat · 79 lines
Am 19.01.2011 um 20:19 schrieb Pushkaraj Thorat: > Thanks for your response Michael, > > I am using java 1.6 > > pushkaraj@toothless:~$ java -version > java version "1.6.0_17" > Java(TM) SE Runtime Environment (build 1.6.0_17-b04) > Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode) > pushkaraj@toothless:~$ > > Just to update, the rest server ran successfully on my windows machine. Not sure what problem faced on the linux(ubuntu) machine. I will debug once I get some time. > > Thanks, Pushkaraj > > > On Tue, Jan 18, 2011 at 3:46 AM, Michael Seiferle <michael.seiferle at uni-konstanz.de> wrote: > Dear Pushkaraj, > > I am deeply sorry for you having to mess around with that erroneous startup scripts. > We fixed them in both the ZIP & DMG distribution, feel free to download them again. > > >> java.lang.IncompatibleClassChangeError > We have been trying to reproduce this error - but to no avail. > Your error message might have to do something with your Java Version; please make sure you are running the latest version. > > Hope this helps! In case it does not, feel free to ask for more. > > Kind regards > > Michael > > Am 17.01.2011 um 22:00 schrieb Pushkaraj Thorat: > > > I am doing setup for REST enabled basex database with procedure mentioned in http://docs.basex.org/wiki/JAX-RX_API URL. > > > > Configuring & starting server and running failed due to class not found, but later I've modified the ./basexrest script as: (Included all the jars in lib folder) > > > > ######START > > #!/bin/bash > > # Path to this script > > PWD=`dirname $0` > > # Paths to distributed files or source directories > > BASEX=$PWD/BaseX.jar > > BASEXAPI=$PWD/../lib/basex-api.jar > > # Classpath > > LIB=$PWD/../lib > > LIB_CP="" > > for JAR_FILE in $LIB/*.jar > > do > > LIB_CP="$LIB/$JAR_FILE:$LIB_CP" > > done > > CP=$BASEX:$BASEXAPI:$LIB_CP > > # Options for virtual machine > > VM=-Xmx1g > > # Run REST server > > java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@" > > > > ######END > > > > after this, server started successfully, hit the URL - http://localhost:8984/basex/jax-rx I am getting following exception: > > > > java.lang.IncompatibleClassChangeError: Class javax.ws.rs.core.Response$Status does not implement the requested interface javax.ws.rs.core.Response$StatusType > > at com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548) > > at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156) > > at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133) > > at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50) > > at org.basex.io.PrintOutput.flush(PrintOutput.java:126) > > at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206) > > at org.basex.data.Serializer.close(Serializer.java:219) > > at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96) > > at org.basex.api.jaxrx.BXCode.run(BXCode.java:53) > > at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53) > > at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) > > at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) > > at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299) > > > >
MS
Michael Seiferlein reply to Pushkaraj Thorat, 19 Jan 2011, 20:1920 Jan 2011 12:54 #
Hi Pushkaraj, ...update:
Quoted text · Pushkaraj Thorat · 18 lines
It seems to work on my machine, I highlighted the relevant points, I am running Ubuntu 10.04 LTS > ms@bx:~/Desktop/bsx/bin$ uname -a > Linux michael-desktop 2.6.32-27-generic #49-Ubuntu SMP Wed Dec 1 23:52:12 UTC 2010 i686 GNU/Linux > ms@bx:~/Desktop/bsx/bin$ java -version > java version "1.6.0_22" > Java(TM) SE Runtime Environment (build 1.6.0_22-b04) > Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing) > ms@bx:~/Desktop/bsx/bin$ ./basexrest > Starting REST server on port 8984... > BaseX 6.5 [Server] > Server was started. > 2011-01-20 12:44:43.458:INFO::Logging to STDERR via org.mortbay.log.StdErrLog > 2011-01-20 12:44:43.501:INFO::jetty-6.1.25 > 2011-01-20 12:44:43.550:INFO::Started SocketConnector at 0.0.0.0:8984 > > ms@bx:~/Desktop/bsx/bin$ curl http://localhost:8984/basex/jax-rx > <jax-rx:results xmlns:jax-rx="http://jax-rx.sourceforge.net"> > </jax-rx:results>ms@bx:~/Desktop/bsx/bin$
Sorry I can't shed any more light on this issue! If you manage to find something I'd be glad to hear about it! Thanks and kind regards Michael
Quoted text · Pushkaraj Thorat · 79 lines
Am 19.01.2011 um 20:19 schrieb Pushkaraj Thorat: > Thanks for your response Michael, > > I am using java 1.6 > > pushkaraj@toothless:~$ java -version > java version "1.6.0_17" > Java(TM) SE Runtime Environment (build 1.6.0_17-b04) > Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode) > pushkaraj@toothless:~$ > > Just to update, the rest server ran successfully on my windows machine. Not sure what problem faced on the linux(ubuntu) machine. I will debug once I get some time. > > Thanks, Pushkaraj > > > On Tue, Jan 18, 2011 at 3:46 AM, Michael Seiferle <michael.seiferle at uni-konstanz.de> wrote: > Dear Pushkaraj, > > I am deeply sorry for you having to mess around with that erroneous startup scripts. > We fixed them in both the ZIP & DMG distribution, feel free to download them again. > > >> java.lang.IncompatibleClassChangeError > We have been trying to reproduce this error - but to no avail. > Your error message might have to do something with your Java Version; please make sure you are running the latest version. > > Hope this helps! In case it does not, feel free to ask for more. > > Kind regards > > Michael > > Am 17.01.2011 um 22:00 schrieb Pushkaraj Thorat: > > > I am doing setup for REST enabled basex database with procedure mentioned in http://docs.basex.org/wiki/JAX-RX_API URL. > > > > Configuring & starting server and running failed due to class not found, but later I've modified the ./basexrest script as: (Included all the jars in lib folder) > > > > ######START > > #!/bin/bash > > # Path to this script > > PWD=`dirname $0` > > # Paths to distributed files or source directories > > BASEX=$PWD/BaseX.jar > > BASEXAPI=$PWD/../lib/basex-api.jar > > # Classpath > > LIB=$PWD/../lib > > LIB_CP="" > > for JAR_FILE in $LIB/*.jar > > do > > LIB_CP="$LIB/$JAR_FILE:$LIB_CP" > > done > > CP=$BASEX:$BASEXAPI:$LIB_CP > > # Options for virtual machine > > VM=-Xmx1g > > # Run REST server > > java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@" > > > > ######END > > > > after this, server started successfully, hit the URL - http://localhost:8984/basex/jax-rx I am getting following exception: > > > > java.lang.IncompatibleClassChangeError: Class javax.ws.rs.core.Response$Status does not implement the requested interface javax.ws.rs.core.Response$StatusType > > at com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548) > > at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156) > > at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133) > > at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50) > > at org.basex.io.PrintOutput.flush(PrintOutput.java:126) > > at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206) > > at org.basex.data.Serializer.close(Serializer.java:219) > > at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96) > > at org.basex.api.jaxrx.BXCode.run(BXCode.java:53) > > at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53) > > at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) > > at com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) > > at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299) > > > >
RS
Rositsa Shadurain reply to Michael Seiferle, 20 Jan 2011, 12:033 Mar 2011 22:31 #
Hi all, I've just managed accidentally to reproduce the error. I noticed that the class javax.ws.rs.core.Response.Status is defined in both jsr311-api-1.0.jar and jersey-core-1.4.jar but only the class in the jersey-core JAR implements the interface javax.ws.rs.core.Response.StatusType. This is why it is important that the jersey-core JAR appears before the jsr311-api JAR in the classpath. When not the error occurs. Greetings, Rositsa
Quoted text · Michael Seiferle · 110 lines
On Thu, 20 Jan 2011 12:03:45 +0100, Michael Seiferle <michael.seiferle at uni-konstanz.de> wrote: > Hi Pushkaraj, > > thanks in return for your response. > I will see if I can reproduce that in my VM; so far you are the first > one to report this issue, I'll let you know what I can find. > > Kind regards > > Michael > > Am 19.01.2011 um 20:19 schrieb Pushkaraj Thorat: > >> Thanks for your response Michael, >> >> I am using java 1.6 >> >> pushkaraj@toothless:~$ java -version >> java version "1.6.0_17" >> Java(TM) SE Runtime Environment (build 1.6.0_17-b04) >> Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode) >> pushkaraj@toothless:~$ >> >> Just to update, the rest server ran successfully on my windows machine. >> Not sure what problem faced on the linux(ubuntu) machine. I will debug >> once I get some time. >> >> Thanks, Pushkaraj >> >> >> On Tue, Jan 18, 2011 at 3:46 AM, Michael Seiferle >> <michael.seiferle at uni-konstanz.de> wrote: >> Dear Pushkaraj, >> >> I am deeply sorry for you having to mess around with that erroneous >> startup scripts. >> We fixed them in both the ZIP & DMG distribution, feel free to download >> them again. >> >> >> java.lang.IncompatibleClassChangeError >> We have been trying to reproduce this error - but to no avail. >> Your error message might have to do something with your Java Version; >> please make sure you are running the latest version. >> >> Hope this helps! In case it does not, feel free to ask for more. >> >> Kind regards >> >> Michael >> >> Am 17.01.2011 um 22:00 schrieb Pushkaraj Thorat: >> >> > I am doing setup for REST enabled basex database with procedure >> mentioned in http://docs.basex.org/wiki/JAX-RX_API URL. >> > >> > Configuring & starting server and running failed due to class not >> found, but later I've modified the ./basexrest script as: (Included all >> the jars in lib folder) >> > >> > ######START >> > #!/bin/bash >> > # Path to this script >> > PWD=`dirname $0` >> > # Paths to distributed files or source directories >> > BASEX=$PWD/BaseX.jar >> > BASEXAPI=$PWD/../lib/basex-api.jar >> > # Classpath >> > LIB=$PWD/../lib >> > LIB_CP="" >> > for JAR_FILE in $LIB/*.jar >> > do >> > LIB_CP="$LIB/$JAR_FILE:$LIB_CP" >> > done >> > CP=$BASEX:$BASEXAPI:$LIB_CP >> > # Options for virtual machine >> > VM=-Xmx1g >> > # Run REST server >> > java -cp "$CP" $VM org.basex.api.jaxrx.JaxRxServer "$@" >> > >> > ######END >> > >> > after this, server started successfully, hit the URL - >> http://localhost:8984/basex/jax-rx I am getting following exception: >> > >> > java.lang.IncompatibleClassChangeError: Class >> javax.ws.rs.core.Response$Status does not implement the requested >> interface javax.ws.rs.core.Response$StatusType >> > at >> com.sun.jersey.spi.container.ContainerResponse.getStatus(ContainerResponse.java:548) >> > at >> com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.commitWrite(ContainerResponse.java:156) >> > at >> com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:133) >> > at org.basex.io.BufferedOutput.flush(BufferedOutput.java:50) >> > at org.basex.io.PrintOutput.flush(PrintOutput.java:126) >> > at org.basex.data.XMLSerializer.cls(XMLSerializer.java:206) >> > at org.basex.data.Serializer.close(Serializer.java:219) >> > at org.basex.api.jaxrx.BXJaxRx$1.code(BXJaxRx.java:96) >> > at org.basex.api.jaxrx.BXCode.run(BXCode.java:53) >> > at org.basex.api.jaxrx.BXOutput.write(BXOutput.java:53) >> > at >> com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:71) >> > at >> com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(StreamingOutputProvider.java:57) >> > at >> com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:299) >> > >> >>
PT
Pushkaraj Thorat21 Oct 2011 22:10 #
Thanks Rositsa! It is bit late to reply, but indeed it is a good to know. Regards Pushkaraj
Quoted text · Rositsa Shadura · 132 lines
On Fri, Mar 4, 2011 at 3:01 AM, Rositsa Shadura < rositsa.shadura at uni-konstanz.de> wrote: > Hi all, > > I've just managed accidentally to reproduce the error. I noticed that the > class javax.ws.rs.core.Response.**Status is defined in both > jsr311-api-1.0.jar and jersey-core-1.4.jar but only the class in the > jersey-core JAR implements the interface javax.ws.rs.core.Response.**StatusType. > This is why it is important that the jersey-core JAR appears before the > jsr311-api JAR in the classpath. When not the error occurs. > > Greetings, > Rositsa > > > On Thu, 20 Jan 2011 12:03:45 +0100, Michael Seiferle < > michael.seiferle@uni-**konstanz.de <michael.seiferle at uni-konstanz.de>> > wrote: > > Hi Pushkaraj, >> >> thanks in return for your response. >> I will see if I can reproduce that in my VM; so far you are the first one >> to report this issue, I'll let you know what I can find. >> >> Kind regards >> >> Michael >> >> Am 19.01.2011 um 20:19 schrieb Pushkaraj Thorat: >> >> Thanks for your response Michael, >>> >>> I am using java 1.6 >>> >>> pushkaraj@toothless:~$ java -version >>> java version "1.6.0_17" >>> Java(TM) SE Runtime Environment (build 1.6.0_17-b04) >>> Java HotSpot(TM) Server VM (build 14.3-b01, mixed mode) >>> pushkaraj@toothless:~$ >>> >>> Just to update, the rest server ran successfully on my windows machine. >>> Not sure what problem faced on the linux(ubuntu) machine. I will debug once >>> I get some time. >>> >>> Thanks, Pushkaraj >>> >>> >>> On Tue, Jan 18, 2011 at 3:46 AM, Michael Seiferle <michael.seiferle@uni- >>> **konstanz.de <michael.seiferle at uni-konstanz.de>> wrote: >>> Dear Pushkaraj, >>> >>> I am deeply sorry for you having to mess around with that erroneous >>> startup scripts. >>> We fixed them in both the ZIP & DMG distribution, feel free to download >>> them again. >>> >>> >> java.lang.**IncompatibleClassChangeError >>> We have been trying to reproduce this error - but to no avail. >>> Your error message might have to do something with your Java Version; >>> please make sure you are running the latest version. >>> >>> Hope this helps! In case it does not, feel free to ask for more. >>> >>> Kind regards >>> >>> Michael >>> >>> Am 17.01.2011 um 22:00 schrieb Pushkaraj Thorat: >>> >>> > I am doing setup for REST enabled basex database with procedure >>> mentioned in http://docs.basex.org/wiki/**JAX-RX_API<http://docs.basex.org/wiki/JAX-RX_API>URL. >>> > >>> > Configuring & starting server and running failed due to class not >>> found, but later I've modified the ./basexrest script as: (Included all the >>> jars in lib folder) >>> > >>> > ######START >>> > #!/bin/bash >>> > # Path to this script >>> > PWD=`dirname $0` >>> > # Paths to distributed files or source directories >>> > BASEX=$PWD/BaseX.jar >>> > BASEXAPI=$PWD/../lib/basex-**api.jar >>> > # Classpath >>> > LIB=$PWD/../lib >>> > LIB_CP="" >>> > for JAR_FILE in $LIB/*.jar >>> > do >>> > LIB_CP="$LIB/$JAR_FILE:$LIB_**CP" >>> > done >>> > CP=$BASEX:$BASEXAPI:$LIB_CP >>> > # Options for virtual machine >>> > VM=-Xmx1g >>> > # Run REST server >>> > java -cp "$CP" $VM org.basex.api.jaxrx.**JaxRxServer "$@" >>> > >>> > ######END >>> > >>> > after this, server started successfully, hit the URL - >>> http://localhost:8984/basex/**jax-rx<http://localhost:8984/basex/jax-rx>I am getting following exception: >>> > >>> > java.lang.**IncompatibleClassChangeError: Class >>> javax.ws.rs.core.Response$**Status does not implement the requested >>> interface javax.ws.rs.core.Response$**StatusType >>> > at com.sun.jersey.spi.container.**ContainerResponse.getStatus(** >>> ContainerResponse.java:548) >>> > at com.sun.jersey.spi.container.**ContainerResponse$** >>> CommittingOutputStream.**commitWrite(ContainerResponse.**java:156) >>> > at com.sun.jersey.spi.container.**ContainerResponse$** >>> CommittingOutputStream.write(**ContainerResponse.java:133) >>> > at org.basex.io.BufferedOutput.**flush(BufferedOutput.java:50) >>> > at org.basex.io.PrintOutput.**flush(PrintOutput.java:126) >>> > at org.basex.data.XMLSerializer.**cls(XMLSerializer.java:206) >>> > at org.basex.data.Serializer.**close(Serializer.java:219) >>> > at org.basex.api.jaxrx.BXJaxRx$1.**code(BXJaxRx.java:96) >>> > at org.basex.api.jaxrx.BXCode.**run(BXCode.java:53) >>> > at org.basex.api.jaxrx.BXOutput.**write(BXOutput.java:53) >>> > at com.sun.jersey.core.impl.**provider.entity.** >>> StreamingOutputProvider.**writeTo(**StreamingOutputProvider.java:**71) >>> > at com.sun.jersey.core.impl.**provider.entity.** >>> StreamingOutputProvider.**writeTo(**StreamingOutputProvider.java:**57) >>> > at com.sun.jersey.spi.container.**ContainerResponse.write(** >>> ContainerResponse.java:299) >>> > >>> >>> >>> ______________________________**_________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-**konstanz.de <BaseX-Talk at mailman.uni-konstanz.de> > https://mailman.uni-konstanz.**de/mailman/listinfo/basex-talk<https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk> >

⚡Generated with XQuery