On Tue, Feb 11, 2020 at 10:01:42AM +0100, Ben Engbers scripsit: [snip -- weirdness is the environment, rather than BaseX]
The only real difference between regular and test-account, is that for the regular account, I have added in CLASSPATH an entry for lucene-stemmers-3.4.0.jar
Could it be that this jar causes the error?
That is a question for the nice folks at BaseX!
My guess -- stress "guess" -- is that lucene-stemmers is presumably Apache Lucene, which BaseX might well use -- writing your own stemmer seems like unnecessary suffering, and BaseX does do word stemming as part of the full-text capability -- and since current Apache Lucene is version 8.4.1 -- https://lucene.apache.org/ -- it seems likely you could be running into an error between a Lucene that BaseX expects to be using and the (way-old) version 3.4.0 on the CLASSPATH getting loaded instead.
But I don't know.
Can you take lucene-stemmers-3.4.0.jar off your CLASSPATH and see what happens?
-- Graydon