Hello,
I cannot set the http server to use a distant DB.
In the restxq.xqm file, I always get
Using this:
let $count := (count(db:open('logs')/top/session))
in restxq.xqm, I always get the error:
Stopped at line 15, column 38 in /usr/share/tomcat/webapps/BaseX72/restxq.xqm:
[BASX0003] Database 'logs' not found.
On the web browser.
Using a CLI from a distant server, I can access the ‘logs’ DB.
The db:list() instruction returns nothing.
In web.xml, I set org.basex.mode to “client” and “host” to the IP of my DB server.
Something I don’t understand is that in the below output (db:system()) I can see that “host” is present whereas “mode” is not.
Credential are OK.
Any clue?
When in “client” mode, is “dbpath” useful?
Thanks,
Gilles.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE top PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<top>
<system>
<generalinformation>
<version>7.2</version>
<usedmemory>21887 KB</usedmemory>
</generalinformation>
<mainoptions>
<dbpath>/home/basex/BaseXData</dbpath>
<debug>true</debug>
<eventport>1985</eventport>
<host>10.129.63.129</host>
<httppath>/usr/share/tomcat/webapps/BaseX72/</httppath>
<httpport>8984</httpport>
<keepalive>0</keepalive>
<lang>English</lang>
<langkeys>false</langkeys>
<nonproxyhosts></nonproxyhosts>
<parallel>8</parallel>
<port>1984</port>
<proxyhost></proxyhost>
<proxyport>80</proxyport>
<repopath>/usr/share/tomcat/webapps/BaseX72//repo</repopath>
<serverhost></serverhost>
<serverport>1984</serverport>
<stopport>8985</stopport>
<timeout>0</timeout>
</mainoptions>
<options>
<addarchives>true</addarchives>
<addraw>false</addraw>
<attrindex>true</attrindex>
<autoflush>true</autoflush>
<bindings></bindings>
<cachequery>false</cachequery>
<casesens>false</casesens>
<catfile></catfile>
<chop>true</chop>
<compplan>true</compplan>
<createfilter>*.xml</createfilter>
<diacritics>false</diacritics>
<dotcompact>false</dotcompact>
<dotdisplay>true</dotdisplay>
<dotplan>false</dotplan>
<dotty>dotty</dotty>
<dtd>false</dtd>
<exporter></exporter>
<forcecreate>false</forcecreate>
<ftindex>false</ftindex>
<htmlopt>html=false,omit-xml-declaration=false,method=xml,nons=false,nobogons=false,nodefaults=false,nocolons=false,norestart=false,ignorable=false,emptybogons=false,any=false,norootbogons=false,nocdata=false,lexical=false,encoding=utf-8</htmlopt>
<intparse>true</intparse>
<language>en</language>
<lserror>0</lserror>
<mainmem>false</mainmem>
<maxcats>100</maxcats>
<maxhits>-1</maxhits>
<maxlen>96</maxlen>
<maxstat>30</maxstat>
<parser>xml</parser>
<parseropt>encoding=UTF-8,flat=false,format=verbose,header=false,jsonml=false,lines=true,separator=comma</parseropt>
<pathindex>true</pathindex>
<queryinfo>false</queryinfo>
<querypath></querypath>
<runs>1</runs>
<scoring>0</scoring>
<serialize>true</serialize>
<serializer></serializer>
<skipcorrupt>false</skipcorrupt>
<stemming>false</stemming>
<stopwords></stopwords>
<tailcalls>42</tailcalls>
<textindex>true</textindex>
<updindex>false</updindex>
<wildcards>false</wildcards>
<writeback>false</writeback>
<xmlplan>false</xmlplan>
<xquery3>true</xquery3>
</options>
</system>
</top>