Can't run siserle/blog-example ...

Friday, 22 October 2021 · 5 messages · last reply 25 Oct 2021
JR
Jonathan Robie22 Oct 2021 21:54 #
$ git clone https://github.com/siserle/blog-example
$ basexhttp
/Users/.../blog-example/.basex: Unknown option 'GLOBALLOCK'. /Users/.../blog-example/.basex: Unknown option 'EVENTPORT'. /Users/.../blog-example/.basex: writing new configuration file. [main] INFO org.eclipse.jetty.util.log - Logging initialized @992ms to org.eclipse.jetty.util.log.Slf4jLog [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at <Call name="addConnector"><Arg> <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set name="host"><SystemProperty name="org.basex.serverhost" default="0.0.0.0"/></Set><Set name="port"><SystemProperty name="org.basex.serverport" default="8984"/></Set><Set name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set name="Acceptors">2</Set></New> </Arg></Call> org.eclipse.jetty.server.nio.SelectChannelConnector That resulted in rewriting the .basex config file:
$ git diff .basex
*diff --git a/.basex b/.basex* *index f5d8f6b..872cefa 100644* *--- a/.basex* *+++ b/.basex* @@ -1,24 +1,25 @@ -# BaseX Property File. - # General Options +DEBUG = false DBPATH = data +LOGPATH = .logs REPOPATH = repo -DEBUG = false LANG = English LANGKEYS = false -GLOBALLOCK = false +FAIRLOCK = false +CACHETIMEOUT = 3600 # Client/Server Architecture HOST = localhost PORT = 1984 SERVERPORT = 1984 -EVENTPORT = 1985 USER = PASSWORD = SERVERHOST = PROXYHOST = PROXYPORT = 80 NONPROXYHOSTS = +IGNORECERT = false +IGNOREHOSTNAME = false TIMEOUT = 30 KEEPALIVE = 600 PARALLEL = 8 @@ -27,9 +28,12 @@ LOGMSGMAXLEN = 1000 # HTTP Services WEBPATH = . +RESTPATH = RESTXQPATH = restxq +PARSERESTXQ = 3 HTTPLOCAL = false STOPPORT = 8985 +AUTHMETHOD = Basic If I try again, there are no rewrites, but it still does not start:
$ basexhttp
[main] INFO org.eclipse.jetty.util.log - Logging initialized @303ms to org.eclipse.jetty.util.log.Slf4jLog [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at <Call name="addConnector"><Arg>
      <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set
name="host"><SystemProperty name="org.basex.serverhost"
default="0.0.0.0"/></Set><Set name="port"><SystemProperty
name="org.basex.serverport" default="8984"/></Set><Set
name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set
name="Acceptors">2</Set></New>

    </Arg></Call>
org.eclipse.jetty.server.nio.SelectChannelConnector Any clues? Thanks! Jonathan
CG
Christian Grün22 Oct 2021 22:09 #
Hi Jonathan, The blog example seems to be based on BaseX 7 [1] (which was still based on Jetty 8), so you may need to run it with an older version of BaseX. Best, Christian [1] https://github.com/siserle/blog-example/blob/master/pom.xml#L89
Quoted text · Jonathan Robie · 129 lines
On Fri, Oct 22, 2021 at 7:54 PM Jonathan Robie <jonathan.robie at gmail.com> wrote: > > $ git clone https://github.com/siserle/blog-example > $ basexhttp > > /Users/.../blog-example/.basex: Unknown option 'GLOBALLOCK'. > /Users/.../blog-example/.basex: Unknown option 'EVENTPORT'. > /Users/.../blog-example/.basex: writing new configuration file. > [main] INFO org.eclipse.jetty.util.log - Logging initialized @992ms to org.eclipse.jetty.util.log.Slf4jLog > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at <Call name="addConnector"><Arg> > <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set name="host"><SystemProperty name="org.basex.serverhost" default="0.0.0.0"/></Set><Set name="port"><SystemProperty name="org.basex.serverport" default="8984"/></Set><Set name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set name="Acceptors">2</Set></New> > </Arg></Call> > org.eclipse.jetty.server.nio.SelectChannelConnector > > That resulted in rewriting the .basex config file: > > $ git diff .basex > > diff --git a/.basex b/.basex > > index f5d8f6b..872cefa 100644 > > --- a/.basex > > +++ b/.basex > > @@ -1,24 +1,25 @@ > > -# BaseX Property File. > > - > > # General Options > > +DEBUG = false > > DBPATH = data > > +LOGPATH = .logs > > REPOPATH = repo > > -DEBUG = false > > LANG = English > > LANGKEYS = false > > -GLOBALLOCK = false > > +FAIRLOCK = false > > +CACHETIMEOUT = 3600 > > > > # Client/Server Architecture > > HOST = localhost > > PORT = 1984 > > SERVERPORT = 1984 > > -EVENTPORT = 1985 > > USER = > > PASSWORD = > > SERVERHOST = > > PROXYHOST = > > PROXYPORT = 80 > > NONPROXYHOSTS = > > +IGNORECERT = false > > +IGNOREHOSTNAME = false > > TIMEOUT = 30 > > KEEPALIVE = 600 > > PARALLEL = 8 > > @@ -27,9 +28,12 @@ LOGMSGMAXLEN = 1000 > > > > # HTTP Services > > WEBPATH = . > > +RESTPATH = > > RESTXQPATH = restxq > > +PARSERESTXQ = 3 > > HTTPLOCAL = false > > STOPPORT = 8985 > > +AUTHMETHOD = Basic > > > If I try again, there are no rewrites, but it still does not start: > > $ basexhttp > > [main] INFO org.eclipse.jetty.util.log - Logging initialized @303ms to org.eclipse.jetty.util.log.Slf4jLog > > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at <Call name="addConnector"><Arg> > > <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set name="host"><SystemProperty name="org.basex.serverhost" default="0.0.0.0"/></Set><Set name="port"><SystemProperty name="org.basex.serverport" default="8984"/></Set><Set name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set name="Acceptors">2</Set></New> > > </Arg></Call> > > org.eclipse.jetty.server.nio.SelectChannelConnector > > > Any clues? > > Thanks! > > Jonathan
JR
Jonathan Robie23 Oct 2021 02:52 #
Is there a sample project that works with the current BaseX? I am basically looking for an example to use to help me get started with my own project, and I want to use whatever the current approach is. Jonathan
Quoted text · Christian Grün · 161 lines
On Fri, Oct 22, 2021 at 4:10 PM Christian Grün <christian.gruen at gmail.com> wrote: > Hi Jonathan, > > The blog example seems to be based on BaseX 7 [1] (which was still > based on Jetty 8), so you may need to run it with an older version of > BaseX. > > Best, > Christian > > [1] https://github.com/siserle/blog-example/blob/master/pom.xml#L89 > > > On Fri, Oct 22, 2021 at 7:54 PM Jonathan Robie <jonathan.robie at gmail.com> > wrote: > > > > $ git clone https://github.com/siserle/blog-example > > $ basexhttp > > > > /Users/.../blog-example/.basex: Unknown option 'GLOBALLOCK'. > > /Users/.../blog-example/.basex: Unknown option 'EVENTPORT'. > > /Users/.../blog-example/.basex: writing new configuration file. > > [main] INFO org.eclipse.jetty.util.log - Logging initialized @992ms to > org.eclipse.jetty.util.log.Slf4jLog > > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at > <Call name="addConnector"><Arg> > > <New > class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set > name="host"><SystemProperty name="org.basex.serverhost" > default="0.0.0.0"/></Set><Set name="port"><SystemProperty > name="org.basex.serverport" default="8984"/></Set><Set > name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set > name="Acceptors">2</Set></New> > > </Arg></Call> > > org.eclipse.jetty.server.nio.SelectChannelConnector > > > > That resulted in rewriting the .basex config file: > > > > $ git diff .basex > > > > diff --git a/.basex b/.basex > > > > index f5d8f6b..872cefa 100644 > > > > --- a/.basex > > > > +++ b/.basex > > > > @@ -1,24 +1,25 @@ > > > > -# BaseX Property File. > > > > - > > > > # General Options > > > > +DEBUG = false > > > > DBPATH = data > > > > +LOGPATH = .logs > > > > REPOPATH = repo > > > > -DEBUG = false > > > > LANG = English > > > > LANGKEYS = false > > > > -GLOBALLOCK = false > > > > +FAIRLOCK = false > > > > +CACHETIMEOUT = 3600 > > > > > > > > # Client/Server Architecture > > > > HOST = localhost > > > > PORT = 1984 > > > > SERVERPORT = 1984 > > > > -EVENTPORT = 1985 > > > > USER = > > > > PASSWORD = > > > > SERVERHOST = > > > > PROXYHOST = > > > > PROXYPORT = 80 > > > > NONPROXYHOSTS = > > > > +IGNORECERT = false > > > > +IGNOREHOSTNAME = false > > > > TIMEOUT = 30 > > > > KEEPALIVE = 600 > > > > PARALLEL = 8 > > > > @@ -27,9 +28,12 @@ LOGMSGMAXLEN = 1000 > > > > > > > > # HTTP Services > > > > WEBPATH = . > > > > +RESTPATH = > > > > RESTXQPATH = restxq > > > > +PARSERESTXQ = 3 > > > > HTTPLOCAL = false > > > > STOPPORT = 8985 > > > > +AUTHMETHOD = Basic > > > > > > If I try again, there are no rewrites, but it still does not start: > > > > $ basexhttp > > > > [main] INFO org.eclipse.jetty.util.log - Logging initialized @303ms to > org.eclipse.jetty.util.log.Slf4jLog > > > > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at > <Call name="addConnector"><Arg> > > > > <New > class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set > name="host"><SystemProperty name="org.basex.serverhost" > default="0.0.0.0"/></Set><Set name="port"><SystemProperty > name="org.basex.serverport" default="8984"/></Set><Set > name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set > name="Acceptors">2</Set></New> > > > > </Arg></Call> > > > > org.eclipse.jetty.server.nio.SelectChannelConnector > > > > > > Any clues? > > > > Thanks! > > > > Jonathan >
CG
Christian Grün25 Oct 2021 09:21 #
Hi Jonathan, You could have a look at the DBA code (but it might require some preknowledge on how RESTXQ works) [1]. We decided to keep the DBA code pretty lean (it uses basic HTML and a few lines of JavaScript code). If you are planning to create a full web application, you may want to choose a client framework that suits you best (XForms; or Angular, Vue, React, …). Do you have any preferences? Best, Christian [1] https://docs.basex.org/wiki/DBA
Quoted text · Jonathan Robie · 147 lines
> Is there a sample project that works with the current BaseX? I am basically looking for an example to use to help me get started with my own project, and I want to use whatever the current approach is. > > Jonathan > > On Fri, Oct 22, 2021 at 4:10 PM Christian Grün <christian.gruen at gmail.com> wrote: >> >> Hi Jonathan, >> >> The blog example seems to be based on BaseX 7 [1] (which was still >> based on Jetty 8), so you may need to run it with an older version of >> BaseX. >> >> Best, >> Christian >> >> [1] https://github.com/siserle/blog-example/blob/master/pom.xml#L89 >> >> >> On Fri, Oct 22, 2021 at 7:54 PM Jonathan Robie <jonathan.robie at gmail.com> wrote: >> > >> > $ git clone https://github.com/siserle/blog-example >> > $ basexhttp >> > >> > /Users/.../blog-example/.basex: Unknown option 'GLOBALLOCK'. >> > /Users/.../blog-example/.basex: Unknown option 'EVENTPORT'. >> > /Users/.../blog-example/.basex: writing new configuration file. >> > [main] INFO org.eclipse.jetty.util.log - Logging initialized @992ms to org.eclipse.jetty.util.log.Slf4jLog >> > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at <Call name="addConnector"><Arg> >> > <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set name="host"><SystemProperty name="org.basex.serverhost" default="0.0.0.0"/></Set><Set name="port"><SystemProperty name="org.basex.serverport" default="8984"/></Set><Set name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set name="Acceptors">2</Set></New> >> > </Arg></Call> >> > org.eclipse.jetty.server.nio.SelectChannelConnector >> > >> > That resulted in rewriting the .basex config file: >> > >> > $ git diff .basex >> > >> > diff --git a/.basex b/.basex >> > >> > index f5d8f6b..872cefa 100644 >> > >> > --- a/.basex >> > >> > +++ b/.basex >> > >> > @@ -1,24 +1,25 @@ >> > >> > -# BaseX Property File. >> > >> > - >> > >> > # General Options >> > >> > +DEBUG = false >> > >> > DBPATH = data >> > >> > +LOGPATH = .logs >> > >> > REPOPATH = repo >> > >> > -DEBUG = false >> > >> > LANG = English >> > >> > LANGKEYS = false >> > >> > -GLOBALLOCK = false >> > >> > +FAIRLOCK = false >> > >> > +CACHETIMEOUT = 3600 >> > >> > >> > >> > # Client/Server Architecture >> > >> > HOST = localhost >> > >> > PORT = 1984 >> > >> > SERVERPORT = 1984 >> > >> > -EVENTPORT = 1985 >> > >> > USER = >> > >> > PASSWORD = >> > >> > SERVERHOST = >> > >> > PROXYHOST = >> > >> > PROXYPORT = 80 >> > >> > NONPROXYHOSTS = >> > >> > +IGNORECERT = false >> > >> > +IGNOREHOSTNAME = false >> > >> > TIMEOUT = 30 >> > >> > KEEPALIVE = 600 >> > >> > PARALLEL = 8 >> > >> > @@ -27,9 +28,12 @@ LOGMSGMAXLEN = 1000 >> > >> > >> > >> > # HTTP Services >> > >> > WEBPATH = . >> > >> > +RESTPATH = >> > >> > RESTXQPATH = restxq >> > >> > +PARSERESTXQ = 3 >> > >> > HTTPLOCAL = false >> > >> > STOPPORT = 8985 >> > >> > +AUTHMETHOD = Basic >> > >> > >> > If I try again, there are no rewrites, but it still does not start: >> > >> > $ basexhttp >> > >> > [main] INFO org.eclipse.jetty.util.log - Logging initialized @303ms to org.eclipse.jetty.util.log.Slf4jLog >> > >> > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at <Call name="addConnector"><Arg> >> > >> > <New class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set name="host"><SystemProperty name="org.basex.serverhost" default="0.0.0.0"/></Set><Set name="port"><SystemProperty name="org.basex.serverport" default="8984"/></Set><Set name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set name="Acceptors">2</Set></New> >> > >> > </Arg></Call> >> > >> > org.eclipse.jetty.server.nio.SelectChannelConnector >> > >> > >> > Any clues? >> > >> > Thanks! >> > >> > Jonathan
JR
Jonathan Robie25 Oct 2021 15:13 #
Hi Christian, Thanks - I'll have a look. The database is a services layer that can serve many clients. The POC client is written in Vue, we will also have at least one C# client, there may be others, so I want to avoid any dependencies on specific web frameworks. The services deliver XML or JSON, depending on the nature of the request - document content is in XML, directory level stuff and various other things are in JSON. I definitely plan to use RESTXQ and your test framework. I very much appreciate your helpfulness. Jonathan
Quoted text · Christian Grün · 185 lines
On Mon, Oct 25, 2021 at 3:21 AM Christian Grün <christian.gruen at gmail.com> wrote: > Hi Jonathan, > > You could have a look at the DBA code (but it might require some > preknowledge on how RESTXQ works) [1]. We decided to keep the DBA code > pretty lean (it uses basic HTML and a few lines of JavaScript code). > If you are planning to create a full web application, you may want to > choose a client framework that suits you best (XForms; or Angular, > Vue, React, …). Do you have any preferences? > > Best, > Christian > > [1] https://docs.basex.org/wiki/DBA > > > > Is there a sample project that works with the current BaseX? I am > basically looking for an example to use to help me get started with my own > project, and I want to use whatever the current approach is. > > > > Jonathan > > > > On Fri, Oct 22, 2021 at 4:10 PM Christian Grün < > christian.gruen at gmail.com> wrote: > >> > >> Hi Jonathan, > >> > >> The blog example seems to be based on BaseX 7 [1] (which was still > >> based on Jetty 8), so you may need to run it with an older version of > >> BaseX. > >> > >> Best, > >> Christian > >> > >> [1] https://github.com/siserle/blog-example/blob/master/pom.xml#L89 > >> > >> > >> On Fri, Oct 22, 2021 at 7:54 PM Jonathan Robie < > jonathan.robie at gmail.com> wrote: > >> > > >> > $ git clone https://github.com/siserle/blog-example > >> > $ basexhttp > >> > > >> > /Users/.../blog-example/.basex: Unknown option 'GLOBALLOCK'. > >> > /Users/.../blog-example/.basex: Unknown option 'EVENTPORT'. > >> > /Users/.../blog-example/.basex: writing new configuration file. > >> > [main] INFO org.eclipse.jetty.util.log - Logging initialized @992ms > to org.eclipse.jetty.util.log.Slf4jLog > >> > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at > <Call name="addConnector"><Arg> > >> > <New > class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set > name="host"><SystemProperty name="org.basex.serverhost" > default="0.0.0.0"/></Set><Set name="port"><SystemProperty > name="org.basex.serverport" default="8984"/></Set><Set > name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set > name="Acceptors">2</Set></New> > >> > </Arg></Call> > >> > org.eclipse.jetty.server.nio.SelectChannelConnector > >> > > >> > That resulted in rewriting the .basex config file: > >> > > >> > $ git diff .basex > >> > > >> > diff --git a/.basex b/.basex > >> > > >> > index f5d8f6b..872cefa 100644 > >> > > >> > --- a/.basex > >> > > >> > +++ b/.basex > >> > > >> > @@ -1,24 +1,25 @@ > >> > > >> > -# BaseX Property File. > >> > > >> > - > >> > > >> > # General Options > >> > > >> > +DEBUG = false > >> > > >> > DBPATH = data > >> > > >> > +LOGPATH = .logs > >> > > >> > REPOPATH = repo > >> > > >> > -DEBUG = false > >> > > >> > LANG = English > >> > > >> > LANGKEYS = false > >> > > >> > -GLOBALLOCK = false > >> > > >> > +FAIRLOCK = false > >> > > >> > +CACHETIMEOUT = 3600 > >> > > >> > > >> > > >> > # Client/Server Architecture > >> > > >> > HOST = localhost > >> > > >> > PORT = 1984 > >> > > >> > SERVERPORT = 1984 > >> > > >> > -EVENTPORT = 1985 > >> > > >> > USER = > >> > > >> > PASSWORD = > >> > > >> > SERVERHOST = > >> > > >> > PROXYHOST = > >> > > >> > PROXYPORT = 80 > >> > > >> > NONPROXYHOSTS = > >> > > >> > +IGNORECERT = false > >> > > >> > +IGNOREHOSTNAME = false > >> > > >> > TIMEOUT = 30 > >> > > >> > KEEPALIVE = 600 > >> > > >> > PARALLEL = 8 > >> > > >> > @@ -27,9 +28,12 @@ LOGMSGMAXLEN = 1000 > >> > > >> > > >> > > >> > # HTTP Services > >> > > >> > WEBPATH = . > >> > > >> > +RESTPATH = > >> > > >> > RESTXQPATH = restxq > >> > > >> > +PARSERESTXQ = 3 > >> > > >> > HTTPLOCAL = false > >> > > >> > STOPPORT = 8985 > >> > > >> > +AUTHMETHOD = Basic > >> > > >> > > >> > If I try again, there are no rewrites, but it still does not start: > >> > > >> > $ basexhttp > >> > > >> > [main] INFO org.eclipse.jetty.util.log - Logging initialized @303ms > to org.eclipse.jetty.util.log.Slf4jLog > >> > > >> > [main] WARN org.eclipse.jetty.xml.XmlConfiguration - Config error at > <Call name="addConnector"><Arg> > >> > > >> > <New > class="org.eclipse.jetty.server.nio.SelectChannelConnector"><Set > name="host"><SystemProperty name="org.basex.serverhost" > default="0.0.0.0"/></Set><Set name="port"><SystemProperty > name="org.basex.serverport" default="8984"/></Set><Set > name="maxIdleTime">60000</Set><Set name="reuseAddress">false</Set><Set > name="Acceptors">2</Set></New> > >> > > >> > </Arg></Call> > >> > > >> > org.eclipse.jetty.server.nio.SelectChannelConnector > >> > > >> > > >> > Any clues? > >> > > >> > Thanks! > >> > > >> > Jonathan >

⚡Generated with XQuery