Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Hi Alex, > No, it's located in C:\Users\user\.basex Oh yes, I can now see what's going wrong: In BaseX82.exe, the BaseX82.jar file was moved into the lib directory. Because of that, the program directory (which is the parent directory of lib) is not correctly detected anymore. The webapp directory will be detected if you are launching the bat scripts from either the start menu or the program directory (e.g. via "bin\basexhttp.bat"). However, we'll check out if we can restore the previous behavior of the BaseX executable. Thanks for your feedback, Christian >> * What happens if you start the start menu shortcut "BaseX Server >> (Start)"? > > > C:/Program Files (x86)/BaseX/.basex: writing new configuration file. > HTTP Server was started (port: 8984) > > Now it works fine
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
I replied inline * Is it the .basex file which is located in "C:\Program Files (x86)\BaseX" ? > No, it's located in C:\Users\user\.basex > * What happens if you start the start menu shortcut "BaseX Server (Start)"? > C:/Program Files (x86)/BaseX/.basex: writing new configuration file. HTTP Server was started (port: 8984) Now it works fine
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Thanks for the details. Recently, I only tried the installer with Win XP, but we'll do some more testing soon. Two last questions: > Because .basex configuration file contains > WEBPATH = C:\Users\user\BaseXWeb * Is it the .basex file which is located in "C:\Program Files (x86)\BaseX" ? * What happens if you start the start menu shortcut "BaseX Server (Start)"? Cheers, Christian > but this folder contains only WEB-INF folder instead expected "C:\Program > Files (x86)\BaseX\webapp\" > > > On Sat, May 23, 2015 at 6:41 PM, Christian Grün > wrote: >> >> Hi Alex, >> >> Just to be sure: In my last mail, I was indeed referring to the .exe >> version. Have you already tried to reinstall BaseX? >> >> Best, >> Christian >> >> >> On Sat, May 23, 2015 at 9:51 AM, Alexander Shpack >> wrote: >> > Guys, I installed BaseX from .exe installator, not from .zip file. >> > >> > >> > >> > On Sat, May 23, 2015 at 5:06 AM, Erol Akarsu wrote: >> >> >> >> Alexander, >> >> >> >> No issue I am getting.Christian made it perfect. >> >> >> >> I downloaded war file and unzip to somewhere. Then modify >> >> WEB-INF/web.xml >> >> file. I modified these lines >> >> >> >> >> >> org.basex.restxqpath >> >> /home/eakarsu/apache-tomcat-8.0.22/basex >> >> >> >> >> >> org.basex.dbpath >> >> >> >> >> >> /home/eakarsu/apache-tomcat-8.0.22/basex/data >> >> >> >> >> >> org.basex.repopath >> >> >> >> >> >> /home/eakarsu/apache-tomcat-8.0.22/basex/repo >> >> >> >> >> >> Copy files in WEB-INF folder contents to above configured location for >> >> org.basex.restxqpath so that you will have this: >> >> >> >> [eakarsu@norshin ~/apache-tomcat-8.0.22/basex]$ ls >> >> datadbareporestxq.xqmstatic >> >> >> >> >> >> Then build war file (BaseX82c.war) again and drop it to webapps folder >> >> of >> >> apache tomcat. >> >> >> >> Restart apache. >> >> >> >> You can access >> >> >> >> http://localhost:8080/BaseX82c/dba >> >> >> >> http://localhost:8080/BaseX82c/hello/World >> >> >> >> Erol Akarsu >> >> >> >> >> >> On Fri, May 22, 2015 at 4:20 AM, Alexander Shpack >> >> wrote: >> >>> >> >>> Hi BaseX team! >> >>> >> >>> It doesn't work, because WEBPATH contains (by default) a path to a >> >>> local >> >>> user's BaseXWeb folder, not to a webapp folder inside BaseX >> >>> installation >> >>> folder >> >>> >> >>> I was confused a bit, why clean installation of 8.2 doesn't work, when >> >>> 8.1 works fine >> >>> >> >>> Thanks >> >>> >> >>> -- >> >>> s0rr0w >> >> >> >> >> > >> > >> > >> > -- >> > s0rr0w > > > > > -- > s0rr0w
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Fresh installation of win 8.1 Fresh BaseX 8.2 installed from .exe file Launched basexhttp.bat Opened http://localhost:8984/ HTTP ERROR 404 Problem accessing /. Reason: No function found that matches the request. Because .basex configuration file contains WEBPATH = C:\Users\user\BaseXWeb but this folder contains only WEB-INF folder instead expected "C:\Program Files (x86)\BaseX\webapp\" On Sat, May 23, 2015 at 6:41 PM, Christian Grün wrote: > Hi Alex, > > Just to be sure: In my last mail, I was indeed referring to the .exe > version. Have you already tried to reinstall BaseX? > > Best, > Christian > > > On Sat, May 23, 2015 at 9:51 AM, Alexander Shpack > wrote: > > Guys, I installed BaseX from .exe installator, not from .zip file. > > > > > > > > On Sat, May 23, 2015 at 5:06 AM, Erol Akarsu wrote: > >> > >> Alexander, > >> > >> No issue I am getting.Christian made it perfect. > >> > >> I downloaded war file and unzip to somewhere. Then modify > WEB-INF/web.xml > >> file. I modified these lines > >> > >> > >> org.basex.restxqpath > >> /home/eakarsu/apache-tomcat-8.0.22/basex > >> > >> > >> org.basex.dbpath > >> > >> /home/eakarsu/apache-tomcat-8.0.22/basex/data > >> > >> > >> org.basex.repopath > >> > >> /home/eakarsu/apache-tomcat-8.0.22/basex/repo > >> > >> > >> Copy files in WEB-INF folder contents to above configured location for > >> org.basex.restxqpath so that you will have this: > >> > >> [eakarsu@norshin ~/apache-tomcat-8.0.22/basex]$ ls > >> datadbareporestxq.xqmstatic > >> > >> > >> Then build war file (BaseX82c.war) again and drop it to webapps folder > of > >> apache tomcat. > >> > >> Restart apache. > >> > >> You can access > >> > >> http://localhost:8080/BaseX82c/dba > >> > >> http://localhost:8080/BaseX82c/hello/World > >> > >> Erol Akarsu > >> > >> > >> On Fri, May 22, 2015 at 4:20 AM, Alexander Shpack > >> wrote: > >>> > >>> Hi BaseX team! > >>> > >>> It doesn't work, because WEBPATH contains (by default) a path to a > local > >>> user's BaseXWeb folder, not to a webapp folder inside BaseX > installation > >>> folder > >>> > >>> I was confused a bit, why clean installation of 8.2 doesn't work, when > >>> 8.1 works fine > >>> > >>> Thanks > >>> > >>> -- > >>> s0rr0w > >> > >> > > > > > > > > -- > > s0rr0w > -- s0rr0w
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Hi Alex, Just to be sure: In my last mail, I was indeed referring to the .exe version. Have you already tried to reinstall BaseX? Best, Christian On Sat, May 23, 2015 at 9:51 AM, Alexander Shpack wrote: > Guys, I installed BaseX from .exe installator, not from .zip file. > > > > On Sat, May 23, 2015 at 5:06 AM, Erol Akarsu wrote: >> >> Alexander, >> >> No issue I am getting.Christian made it perfect. >> >> I downloaded war file and unzip to somewhere. Then modify WEB-INF/web.xml >> file. I modified these lines >> >> >> org.basex.restxqpath >> /home/eakarsu/apache-tomcat-8.0.22/basex >> >> >> org.basex.dbpath >> >> /home/eakarsu/apache-tomcat-8.0.22/basex/data >> >> >> org.basex.repopath >> >> /home/eakarsu/apache-tomcat-8.0.22/basex/repo >> >> >> Copy files in WEB-INF folder contents to above configured location for >> org.basex.restxqpath so that you will have this: >> >> [eakarsu@norshin ~/apache-tomcat-8.0.22/basex]$ ls >> datadbareporestxq.xqmstatic >> >> >> Then build war file (BaseX82c.war) again and drop it to webapps folder of >> apache tomcat. >> >> Restart apache. >> >> You can access >> >> http://localhost:8080/BaseX82c/dba >> >> http://localhost:8080/BaseX82c/hello/World >> >> Erol Akarsu >> >> >> On Fri, May 22, 2015 at 4:20 AM, Alexander Shpack >> wrote: >>> >>> Hi BaseX team! >>> >>> It doesn't work, because WEBPATH contains (by default) a path to a local >>> user's BaseXWeb folder, not to a webapp folder inside BaseX installation >>> folder >>> >>> I was confused a bit, why clean installation of 8.2 doesn't work, when >>> 8.1 works fine >>> >>> Thanks >>> >>> -- >>> s0rr0w >> >> > > > > -- > s0rr0w
Re: [basex-talk] "Input is too large for a single database" error
Hi Huib, > However, using 8.2 I managed to load the entire Dutch legislation documents > into 5 separate databases. Yay! Good to hear! > Anyway, and I must confess I am a bit lazy here, how do I run a query over > multiple databases/collections in BaseX? Of course I would like to run the > same dumb count query in BaseX too, over these 5 databases containing all my > data, see if it works... This could be a solution: count( for $name in ('laws1', 'laws2') return db:open($name)//law ) This could be another: count( for $i in 1 to 5 let $name := 'laws' || $i return db:open($name)//law ) This is a third (it may be the fastest one, because the dynamic binding of database names in the first 2 queries prevents some optimizations to be triggered): sum( for $i in 1 to 5 let $query := 'count(db:open("db' || $i || '")//law)' return xquery:eval($query) ) Hope this helps, Christian
Re: [basex-talk] 8.2 on Windows. RESTXQ demo doesn't work.
Guys, I installed BaseX from *.exe* installator, not from .zip file. On Sat, May 23, 2015 at 5:06 AM, Erol Akarsu wrote: > Alexander, > > No issue I am getting.Christian made it perfect. > > I downloaded war file and unzip to somewhere. Then modify WEB-INF/web.xml > file. I modified these lines > > > org.basex.restxqpath > /home/eakarsu/apache-tomcat-8.0.22/basex > > > org.basex.dbpath > > /home/eakarsu/apache-tomcat-8.0.22/basex/data > > > org.basex.repopath > > /home/eakarsu/apache-tomcat-8.0.22/basex/repo > > > Copy files in WEB-INF folder contents to above configured location for > org.basex.restxqpath so that you will have this: > > [eakarsu@norshin ~/apache-tomcat-8.0.22/basex]$ ls > datadbareporestxq.xqmstatic > > > Then build war file (BaseX82c.war) again and drop it to webapps folder of > apache tomcat. > > Restart apache. > > You can access > > http://localhost:8080/BaseX82c/dba > > http://localhost:8080/BaseX82c/hello/World > > Erol Akarsu > > > On Fri, May 22, 2015 at 4:20 AM, Alexander Shpack > wrote: > >> Hi BaseX team! >> >> It doesn't work, because WEBPATH contains (by default) a path to a local >> user's BaseXWeb folder, not to a webapp folder inside BaseX installation >> folder >> >> I was confused a bit, why clean installation of 8.2 doesn't work, when >> 8.1 works fine >> >> Thanks >> >> -- >> s0rr0w >> > > -- s0rr0w
Re: [basex-talk] Multiple server instances on a single computer?
Hi France, Yes, that's possible; in our own setups, it's quite a usual scenario. All you have to do is create a .basex file in a directory and start basexserver with a different port from this directory. The port can be changed in the .basex file, via system properties [1] or specified on command line via -p [2]. Best, Christian [1] http://docs.basex.org/wiki/Options [2] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server On Fri, May 22, 2015 at 10:23 PM, France Baril wrote: > Hi, > > Is it possible to install BaseX instances on the same computer? > > My goal is to be able to work on multiple client projects, each with their > own server settings (ex. separate .basex files), dbs and .xqm without having > to create a VM for each. > > VMs are heavy to run on my laptop, and context switching takes time. > > Thanks, > > France > > > > > > -- > France Baril > Architecte documentaire / Documentation architect > france.ba...@architextus.com