From: Craig B. <cra...@ma...> - 2025-01-31 21:05:15
|
I tried eXist 6.3.0 but cannot use it be because things I depend on use modules with location hints and I get the XQST0059 error as described here: https://github.com/eXist-db/exist/issues/5530 So, I thought, since 6.2.0 and 6.3.0 are binary compatible, I'd just downgrade to 6.2.0 and keep the same data directory and be back where I was. I did that but now it can't find the console module using an import statement that's worked for years. This XQuery: ----- xquery version "3.1"; import module namespace console="http://exist-db.org/xquery/console" at "java:org.exist.console.xquery.ConsoleModule"; let $x := console:log('got here') return $x ----- throws this error: ----- Cannot compile xquery: err:XPST0081 Invalid qname console:log. No namespace defined for prefix console. QName is invalid: INVALID_PREFIX [at line 3, column 11] ----- If I remove the location hint I then get: ----- Cannot compile xquery: exerr:ERROR error found while loading module console: Cannot find module class from EXPath repository: org.exist.console.xquery.ConsoleModule ----- The most relevant bits of the stack dump in the log seem to be: Caused by: java.lang.ClassNotFoundException: org.exist.console.xquery.ConsoleModule at java.net.URLClassLoader.findClass(URLClassLoader.java:445) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:592) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:525) ~[?:?] at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:467) ~[?:?] at org.exist.repo.ExistRepository.getModule(ExistRepository.java:169) ~[exist-core-6.2.0.jar:6.2.0] at org.exist.repo.ExistRepository.resolveJavaModule(ExistRepository.java:155) ~[exist-core-6.2.0.jar:6.2.0] at org.exist.xquery.XQueryContext.resolveInEXPathRepository(XQueryContext.java:579) ~[exist-core-6.2.0.jar:6.2.0] Is there a way to (re)acquire the console module in eXist 6.2.0? This is on Java 17, Mac OS X 15.3 x86_64. ________________________________________ Craig A. Berry "... getting out of a sonnet is much more difficult than getting in." Brad Leithauser |