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@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