How to prefer jar files packed in a plugin?
Posted: Thu Feb 16, 2023 10:32 pm
Hi,
I'm currently developing XPath bindings for the ICU4J library by providing Saxon function extensions. The aim is to have ICU's normalization and transliteration power in XPath.
The bindings are also packed for use in Oxygen by providing a plugin. The call of a function from a transformation scenario works. However, the processing of the function fails; while it succeeds with a Saxon standalone setup.
Apparently, it's an interference problem with the ICU package that ships with Oxygen. I provoked an exception in the Saxon standalone
setup and in Oxygen, and I get different trace backs, that indicate, that different versions of ICU4J are in force.
Question: Is there a way to make Oxygen use the version of ICU4J that is packaged into the plugin, at least when using Saxon based
transformations?
I tried classLoaderType="preferReferencedResources" on the plugin element in the plugin.xml file; and also tried
scope="globalHighPriority" on the librariesFolder element. But that did not make it.
Code is currently here: https://github.com/lueck/icu-xpath-bindings
The tracebacks from the different setups are reported in issue 1.
Regards,
Christian
I'm currently developing XPath bindings for the ICU4J library by providing Saxon function extensions. The aim is to have ICU's normalization and transliteration power in XPath.
The bindings are also packed for use in Oxygen by providing a plugin. The call of a function from a transformation scenario works. However, the processing of the function fails; while it succeeds with a Saxon standalone setup.
Apparently, it's an interference problem with the ICU package that ships with Oxygen. I provoked an exception in the Saxon standalone
setup and in Oxygen, and I get different trace backs, that indicate, that different versions of ICU4J are in force.
Question: Is there a way to make Oxygen use the version of ICU4J that is packaged into the plugin, at least when using Saxon based
transformations?
I tried classLoaderType="preferReferencedResources" on the plugin element in the plugin.xml file; and also tried
scope="globalHighPriority" on the librariesFolder element. But that did not make it.
Code is currently here: https://github.com/lueck/icu-xpath-bindings
The tracebacks from the different setups are reported in issue 1.
Regards,
Christian