Re: classloader error
Finally not in the office, so I can work on free projects ...toggle quoted messageShow quoted text
Apologies for the contextClassLoader() misleading hint; I don't know Xerces 2.11 peculiarities since we still use ancient 2.8.0 in NetBeans and for newer projects basic JAXP in JDK was sufficient ...
It seems that JMRI is missing xml-apis library JAR. Xerces started to implement ElementTraversal (https://www.w3.org/TR/ElementTraversal/) in its version 2.11.
Those classes were for some reason shipped with Jython 2.7.0; when it was replaced for Jython 2.7.1, which still contains some version of Xerces, but seems repackaged to org.python.*
When I added xml-apis.jar to JMRI's runtime classpath, it started on JDK8.
ElementTraversal API is part of JDK 9 and later, that's why it works on JDK11.
Dne 18. 10. 19 v 17:03 Randall Wood via Groups.Io napsal(a):
I think I need to go through the set of Java 1.8 versions to see if some change in some release of Java 1.8 caused this. It appears (from reading release notes) that Java 1.8 > update 201 selects the XML parser differently than older updates than that.