Hi Andreas,
Yes, you understood what I wanted, but I did not implement
the solution suggested for the reason that there might be
dependencies between a given version of basex server
(sub-project basex) and the corresponding version of
basex-api (sub-project api). I could not simply replace
basex-api.jar because, well, basex-api.jar does NOT exist
inside of basex-api.zip. On further investigation and while
attempting to find a workaround, I noticed that the
basex-api.jar is actually split into three different .jars
inside basex-api.zip; but those jars (the splitted versions)
also package a corresponding dependency each (for xmldb-api,
xqj-api and jax-rx, respectively)!
I decided to keep things simple and bundled *everything* in
one jar, but that broke the runtime. So, I updated my build
to include files on as similar a basis as I could (to how
you create basex-api.zip) without making the build too
complex - so there are a few differences, but it works for
me at the moment, so I am going to keep my build simple.
In case anyone wants my build config (maven project) to
arrive at basex-api.zip, please post your requirement on
this mailing list and I can provide you the same. That
said, I guess Andreas, that your project is already using a
build config to achieve this and would be grateful if you
could host that as well as all tags and branches so that
these can be anonymously checked out.
Thanks for your prompt replies Andreas and Michael, much
appreciated.
As this is a Uni project, can one hope it has any chances of
proper commercial support being provided in case an
organization becomes interested?
----- Original Message -----
From: "Andreas Weiler"
<andreas.weiler@uni-konstanz.de>
To: "Mahender Didwania"
<mahender@didwania.co.uk>
Sent: Monday, October 4, 2010 10:20:16 AM GMT +00:00 GMT
Britain, Ireland, Portugal
Subject: Re: [basex-talk] Using the REST interface
Hi Mahender,
you can just extract the BaseX61-api.zip, then add your
new BaseX build
and change the name of it in the
startjaxrx.bat,
so the server of the new build is used.
I hope i did understand what you are want to do...
Kind regards,
Andreas
Am 04.10.2010 11:09, schrieb Mahender Didwania:
Hi,
What I am trying is to get something like basex-api.zip available at http://www.inf.uni-konstanz.de/dbis/basex/download/BaseX61-api.zip, only for the newer version (e.g., 6.2.9).
Now the file at the URL above packages several other things besides the basex-api (its name BaseX61-api.zip appears to suggest it contains only the basex-api, but that is not the case).
My question is: where is the maven pom (if there is one) to create BaseX61-api.zip which includes basex.jar and basex-api.jar besides a few things from examples sub-project as well as several other dependencies? How do you guys create BaseXnn-api.zip?
None of the builds of sub-projects basex, api or examples leads to creation of this file and this file is what I need. When I try to create it on my own (searching for the various artefacts and putting them in .zip using a local Maven project), then the resulting server starts fine but every time I perform a REST operation, I get 500 internal server error. I do not want to run basex from within Eclipse.
Thanks.
----- Original Message -----
From: "Andreas Weiler" <andreas.weiler@uni-konstanz.de>
To: "Mahender Didwania" <mahender@didwania.co.uk>
Cc: basex-talk@mailman.uni-konstanz.de
Sent: Saturday, October 2, 2010 9:28:52 AM GMT +00:00 GMT Britain, Ireland, Portugal
Subject: Re: [basex-talk] Using the REST interface
Hi Mahender,
you can check out all three projects (see
http://www.inf.uni-konstanz.de/dbis/basex/install).
After that just start the StartJaxRx.java in the examples project.
Now you can run the examples from
http://www.inf.uni-konstanz.de/dbis/basex/rest.
Kind regards,
Andreas
Am 01.10.2010 17:30, schrieb Mahender Didwania:
Hi,
I am using Maven to get basex.jar and basex-api.jar and then trying to integrate them with Jetty on the lines of how it is done in the zip file available at http://www.inf.uni-konstanz.de/dbis/basex/download/BaseX61-api.zip - the reason I am doing it in my own Maven build is because 6.1 is not the latest version of basex, but the bundled distribution including Jetty is not available for a later version.
I have not tested the bundled distribution (Jetty bundled for access using REST).
I am not able to get this to work however - all I get is internal server when I attempt anything other than get application.wadl - e.g., I cannot PUT successfully using the guidelines at http://www.inf.uni-konstanz.de/dbis/basex/rest.
I had a cursory look at the java code and could not immediately figure out how Jetty is connecting to the Basex server instance in the StartJaxRx.java or StartJetty.java - to me it merely appears to start the two servers.
I will later attempt to use the bundled .zip file available for download, although that is for an earlier version.
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk