can't make Geo Module work
Thursday, 31 December 2015 · 7 messages · last reply 3 Jan 2016
EB
Eric Boisvert31 Dec 2015 21:57 #
Greetings
I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 (jre1.8.0_66) running Windows 7. enterprise (SP1).
Did nothing (just loaded a single XML file) throught the web based admin interface and tried this XQuery
import module namespace geo = "http://expath.org/ns/geo";
declare namespace gml='http://www.opengis.net/gml';
let $point := <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point>
return geo:geometry-type($point)(it's from Geo Module documentation at
http://docs.basex.org/wiki/Geo_Module#geo:geometry-type)
all I get is *[XPST0017] Unknown function 'geo:geometry-type'.*
in the logs, I have
[POST]
http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; Stopped at C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown function 'geo:geometry-type'.
The java Geo.class are present
(webapps\BaseX831\WEB-INF\classes\org\expath\ns)
Other trivial XQuery do work
Any idea what's wrong ?
Thanks and Happy New Year
CG
Christian Grün1 Jan 2016 21:45 #
Hi Eric,
The error message indicates that you have run the XQuery expression from the DBA query panel. You’ll probably have to assign "admin" permissions via the "Settings" panel to successfully run the query.
The issues you have encountered shouldn’t appear with the latest 8.4 snapshot anymore [1]: Just recently, we have revised error messages of failed Java function calls; beside that, the Geo Module is not restricted to Admin users anymore, but can be called from everyone.
Hope this helps,
Christian
[1] http://files.basex.org/releases/latest
Quoted text · Eric Boisvert · 30 lines
On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert <denevers1649 at gmail.com> wrote: > > Greetings > > I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 (jre1.8.0_66) running Windows 7. enterprise (SP1). > > Did nothing (just loaded a single XML file) throught the web based admin interface and tried this XQuery > > import module namespace geo = "http://expath.org/ns/geo"; > declare namespace gml='http://www.opengis.net/gml'; > > let $point := <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> > return geo:geometry-type($point) > > (it's from Geo Module documentation at http://docs.basex.org/wiki/Geo_Module#geo:geometry-type) > > all I get is [XPST0017] Unknown function 'geo:geometry-type'. > > in the logs, I have > > > [POST] http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; Stopped at C:/Program Files/Apache Software Foundation/Tomcat 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown function 'geo:geometry-type'. > > The java Geo.class are present (webapps\BaseX831\WEB-INF\classes\org\expath\ns) > > Other trivial XQuery do work > > Any idea what's wrong ? > > Thanks and Happy New Year
EB
Eric Boisvert1 Jan 2016 23:03 #
It indeed solved the problem, thank you very much
2016-01-01 15:45 GMT-05:00 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 58 lines
> Hi Eric, > > The error message indicates that you have run the XQuery expression > from the DBA query panel. You’ll probably have to assign "admin" > permissions via the "Settings" panel to successfully run the query. > > The issues you have encountered shouldn’t appear with the latest 8.4 > snapshot anymore [1]: Just recently, we have revised error messages of > failed Java function calls; beside that, the Geo Module is not > restricted to Admin users anymore, but can be called from everyone. > > Hope this helps, > Christian > > [1] http://files.basex.org/releases/latest > > > On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert <denevers1649 at gmail.com> > wrote: > > > > Greetings > > > > I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 > (jre1.8.0_66) running Windows 7. enterprise (SP1). > > > > Did nothing (just loaded a single XML file) throught the web based admin > interface and tried this XQuery > > > > import module namespace geo = "http://expath.org/ns/geo"; > > declare namespace gml='http://www.opengis.net/gml'; > > > > let $point := > <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> > > return geo:geometry-type($point) > > > > (it's from Geo Module documentation at > http://docs.basex.org/wiki/Geo_Module#geo:geometry-type) > > > > all I get is [XPST0017] Unknown function 'geo:geometry-type'. > > > > in the logs, I have > > > > > > [POST] > http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; > Stopped at C:/Program Files/Apache Software Foundation/Tomcat > 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown > function 'geo:geometry-type'. > > > > The java Geo.class are present > (webapps\BaseX831\WEB-INF\classes\org\expath\ns) > > > > Other trivial XQuery do work > > > > Any idea what's wrong ? > > > > Thanks and Happy New Year >
AB
Using the run button on /dba/queries seems broken for me in recent 8.4 builds.
Regardless of the query. The console shows: TypeError: Not enough arguments to Document.evaluate.
Ctrl-enter works fine.
/Andy
Quoted text · Eric Boisvert · 89 lines
On 2 January 2016 at 21:53, Eric Boisvert <denevers1649 at gmail.com> wrote: > I installed your new version (BaseX84-20160101.192044.war > <http://files.basex.org/releases/latest/BaseX84-20160101.192044.war>) , > but now the web interface has a javascript error (runs ok when I access the > REST service for instance) > > I'm on /BaseX/dba/queries > > running this query > > import module namespace geo = "http://expath.org/ns/geo"; > declare namespace gml='http://www.opengis.net/gml'; > > let $point := <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> > return geo:geometry-type($point) > > and I get this error (in Chrome javascript console using debug tools) > > Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 > arguments required, but only 0 present. > onclick @ queries:39 > > Permission is set to "admin" (but same issue with "none") > > > Sorry If I'm doing something dumb - I'm learning. > > 2016-01-01 15:45 GMT-05:00 Christian Grün <christian.gruen at gmail.com>: > >> Hi Eric, >> >> The error message indicates that you have run the XQuery expression >> from the DBA query panel. You’ll probably have to assign "admin" >> permissions via the "Settings" panel to successfully run the query. >> >> The issues you have encountered shouldn’t appear with the latest 8.4 >> snapshot anymore [1]: Just recently, we have revised error messages of >> failed Java function calls; beside that, the Geo Module is not >> restricted to Admin users anymore, but can be called from everyone. >> >> Hope this helps, >> Christian >> >> [1] http://files.basex.org/releases/latest >> >> >> On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert <denevers1649 at gmail.com> >> wrote: >> > >> > Greetings >> > >> > I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 >> (jre1.8.0_66) running Windows 7. enterprise (SP1). >> > >> > Did nothing (just loaded a single XML file) throught the web based >> admin interface and tried this XQuery >> > >> > import module namespace geo = "http://expath.org/ns/geo"; >> > declare namespace gml='http://www.opengis.net/gml'; >> > >> > let $point := >> <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> >> > return geo:geometry-type($point) >> > >> > (it's from Geo Module documentation at >> http://docs.basex.org/wiki/Geo_Module#geo:geometry-type) >> > >> > all I get is [XPST0017] Unknown function 'geo:geometry-type'. >> > >> > in the logs, I have >> > >> > >> > [POST] >> http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; >> Stopped at C:/Program Files/Apache Software Foundation/Tomcat >> 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown >> function 'geo:geometry-type'. >> > >> > The java Geo.class are present >> (webapps\BaseX831\WEB-INF\classes\org\expath\ns) >> > >> > Other trivial XQuery do work >> > >> > Any idea what's wrong ? >> > >> > Thanks and Happy New Year >> > >
EB
I installed your new version (BaseX84-20160101.192044.war
<http://files.basex.org/releases/latest/BaseX84-20160101.192044.war>) , but now the web interface has a javascript error (runs ok when I access the REST service for instance)
I'm on /BaseX/dba/queries
running this query
import module namespace geo = "http://expath.org/ns/geo";
declare namespace gml='http://www.opengis.net/gml';
let $point := <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point>
return geo:geometry-type($point)and I get this error (in Chrome javascript console using debug tools)
Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 arguments required, but only 0 present.
onclick @ queries:39
Permission is set to "admin" (but same issue with "none")
Sorry If I'm doing something dumb - I'm learning.
2016-01-01 15:45 GMT-05:00 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 58 lines
> Hi Eric, > > The error message indicates that you have run the XQuery expression > from the DBA query panel. You’ll probably have to assign "admin" > permissions via the "Settings" panel to successfully run the query. > > The issues you have encountered shouldn’t appear with the latest 8.4 > snapshot anymore [1]: Just recently, we have revised error messages of > failed Java function calls; beside that, the Geo Module is not > restricted to Admin users anymore, but can be called from everyone. > > Hope this helps, > Christian > > [1] http://files.basex.org/releases/latest > > > On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert <denevers1649 at gmail.com> > wrote: > > > > Greetings > > > > I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 > (jre1.8.0_66) running Windows 7. enterprise (SP1). > > > > Did nothing (just loaded a single XML file) throught the web based admin > interface and tried this XQuery > > > > import module namespace geo = "http://expath.org/ns/geo"; > > declare namespace gml='http://www.opengis.net/gml'; > > > > let $point := > <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> > > return geo:geometry-type($point) > > > > (it's from Geo Module documentation at > http://docs.basex.org/wiki/Geo_Module#geo:geometry-type) > > > > all I get is [XPST0017] Unknown function 'geo:geometry-type'. > > > > in the logs, I have > > > > > > [POST] > http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; > Stopped at C:/Program Files/Apache Software Foundation/Tomcat > 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown > function 'geo:geometry-type'. > > > > The java Geo.class are present > (webapps\BaseX831\WEB-INF\classes\org\expath\ns) > > > > Other trivial XQuery do work > > > > Any idea what's wrong ? > > > > Thanks and Happy New Year >
CG
…thanks for the hints. And sorry for the inconvenience; will be fixed soon.
Quoted text · Andy Bunce · 100 lines
On Sat, Jan 2, 2016 at 11:09 PM, Andy Bunce <bunce.andy at gmail.com> wrote: > Using the run button on /dba/queries seems broken for me in recent 8.4 > builds. > Regardless of the query. The console shows: TypeError: Not enough arguments > to Document.evaluate. > > Ctrl-enter works fine. > > /Andy > > On 2 January 2016 at 21:53, Eric Boisvert <denevers1649 at gmail.com> wrote: >> >> I installed your new version (BaseX84-20160101.192044.war) , but now the >> web interface has a javascript error (runs ok when I access the REST service >> for instance) >> >> I'm on /BaseX/dba/queries >> >> running this query >> >> import module namespace geo = "http://expath.org/ns/geo"; >> declare namespace gml='http://www.opengis.net/gml'; >> >> let $point := >> <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> >> return geo:geometry-type($point) >> >> and I get this error (in Chrome javascript console using debug tools) >> >> Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 >> arguments required, but only 0 present. >> onclick @ queries:39 >> >> Permission is set to "admin" (but same issue with "none") >> >> >> Sorry If I'm doing something dumb - I'm learning. >> >> 2016-01-01 15:45 GMT-05:00 Christian Grün <christian.gruen at gmail.com>: >>> >>> Hi Eric, >>> >>> The error message indicates that you have run the XQuery expression >>> from the DBA query panel. You’ll probably have to assign "admin" >>> permissions via the "Settings" panel to successfully run the query. >>> >>> The issues you have encountered shouldn’t appear with the latest 8.4 >>> snapshot anymore [1]: Just recently, we have revised error messages of >>> failed Java function calls; beside that, the Geo Module is not >>> restricted to Admin users anymore, but can be called from everyone. >>> >>> Hope this helps, >>> Christian >>> >>> [1] http://files.basex.org/releases/latest >>> >>> >>> On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert <denevers1649 at gmail.com> >>> wrote: >>> > >>> > Greetings >>> > >>> > I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 >>> > (jre1.8.0_66) running Windows 7. enterprise (SP1). >>> > >>> > Did nothing (just loaded a single XML file) throught the web based >>> > admin interface and tried this XQuery >>> > >>> > import module namespace geo = "http://expath.org/ns/geo"; >>> > declare namespace gml='http://www.opengis.net/gml'; >>> > >>> > let $point := >>> > <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> >>> > return geo:geometry-type($point) >>> > >>> > (it's from Geo Module documentation at >>> > http://docs.basex.org/wiki/Geo_Module#geo:geometry-type) >>> > >>> > all I get is [XPST0017] Unknown function 'geo:geometry-type'. >>> > >>> > in the logs, I have >>> > >>> > >>> > [POST] >>> > http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; >>> > Stopped at C:/Program Files/Apache Software Foundation/Tomcat >>> > 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown >>> > function 'geo:geometry-type'. >>> > >>> > The java Geo.class are present >>> > (webapps\BaseX831\WEB-INF\classes\org\expath\ns) >>> > >>> > Other trivial XQuery do work >>> > >>> > Any idea what's wrong ? >>> > >>> > Thanks and Happy New Year >> >> >
CG
Christian Grün3 Jan 2016 13:20 #
Quoted text · Christian Grün · 1 line
> …thanks for the hints. And sorry for the inconvenience; will be fixed soon.
Quoted text · Christian Grün · 104 lines
On Sun, Jan 3, 2016 at 12:56 PM, Christian Grün <christian.gruen at gmail.com> wrote: > > > On Sat, Jan 2, 2016 at 11:09 PM, Andy Bunce <bunce.andy at gmail.com> wrote: >> Using the run button on /dba/queries seems broken for me in recent 8.4 >> builds. >> Regardless of the query. The console shows: TypeError: Not enough arguments >> to Document.evaluate. >> >> Ctrl-enter works fine. >> >> /Andy >> >> On 2 January 2016 at 21:53, Eric Boisvert <denevers1649 at gmail.com> wrote: >>> >>> I installed your new version (BaseX84-20160101.192044.war) , but now the >>> web interface has a javascript error (runs ok when I access the REST service >>> for instance) >>> >>> I'm on /BaseX/dba/queries >>> >>> running this query >>> >>> import module namespace geo = "http://expath.org/ns/geo"; >>> declare namespace gml='http://www.opengis.net/gml'; >>> >>> let $point := >>> <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> >>> return geo:geometry-type($point) >>> >>> and I get this error (in Chrome javascript console using debug tools) >>> >>> Uncaught TypeError: Failed to execute 'evaluate' on 'Document': 2 >>> arguments required, but only 0 present. >>> onclick @ queries:39 >>> >>> Permission is set to "admin" (but same issue with "none") >>> >>> >>> Sorry If I'm doing something dumb - I'm learning. >>> >>> 2016-01-01 15:45 GMT-05:00 Christian Grün <christian.gruen at gmail.com>: >>>> >>>> Hi Eric, >>>> >>>> The error message indicates that you have run the XQuery expression >>>> from the DBA query panel. You’ll probably have to assign "admin" >>>> permissions via the "Settings" panel to successfully run the query. >>>> >>>> The issues you have encountered shouldn’t appear with the latest 8.4 >>>> snapshot anymore [1]: Just recently, we have revised error messages of >>>> failed Java function calls; beside that, the Geo Module is not >>>> restricted to Admin users anymore, but can be called from everyone. >>>> >>>> Hope this helps, >>>> Christian >>>> >>>> [1] http://files.basex.org/releases/latest >>>> >>>> >>>> On Thu, Dec 31, 2015 at 8:57 PM, Eric Boisvert <denevers1649 at gmail.com> >>>> wrote: >>>> > >>>> > Greetings >>>> > >>>> > I just downloaded BaseX 8.3.1 .war and installed it on Tomcat 7 >>>> > (jre1.8.0_66) running Windows 7. enterprise (SP1). >>>> > >>>> > Did nothing (just loaded a single XML file) throught the web based >>>> > admin interface and tried this XQuery >>>> > >>>> > import module namespace geo = "http://expath.org/ns/geo"; >>>> > declare namespace gml='http://www.opengis.net/gml'; >>>> > >>>> > let $point := >>>> > <gml:Point><gml:coordinates>1,2</gml:coordinates></gml:Point> >>>> > return geo:geometry-type($point) >>>> > >>>> > (it's from Geo Module documentation at >>>> > http://docs.basex.org/wiki/Geo_Module#geo:geometry-type) >>>> > >>>> > all I get is [XPST0017] Unknown function 'geo:geometry-type'. >>>> > >>>> > in the logs, I have >>>> > >>>> > >>>> > [POST] >>>> > http://localhost:8080/BaseX831/dba/eval-query?name=&resource=&sort=&loglist=; >>>> > Stopped at C:/Program Files/Apache Software Foundation/Tomcat >>>> > 7.0/webapps/BaseX831/dba/modules/util.xqm, 94/17: [XPST0017] Unknown >>>> > function 'geo:geometry-type'. >>>> > >>>> > The java Geo.class are present >>>> > (webapps\BaseX831\WEB-INF\classes\org\expath\ns) >>>> > >>>> > Other trivial XQuery do work >>>> > >>>> > Any idea what's wrong ? >>>> > >>>> > Thanks and Happy New Year >>> >>> >>
Written for BaseX 8.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery