NoClassDefFoundError for Xerces when calling EditorVariables.getAllFrameworksDirs()
Posted: Wed May 24, 2017 7:46 pm
In 18.1, from within an action implemented in a framework, if I call EditorVariables.getAllFrameworksDirs(), I get the following exception:
I tried adding "${oxygenHome}/lib/xercesImpl.jar" to the framework classpath, but it doesn't help. How can I configure my framework so that this will work? Alternatively, is there a better way to look up the base directory of a specific framework from Java?
Code: Select all
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/SAXParser
at ro.sync.exml.options.yf.e(Unknown Source)
at ro.sync.exml.options.yf.k(Unknown Source)
at ro.sync.exml.options.v.h(Unknown Source)
at ro.sync.exml.options.yc.h(Unknown Source)
at ro.sync.exml.options.v.<init>(Unknown Source)
at ro.sync.exml.options.yc.<init>(Unknown Source)
at ro.sync.exml.options.yc.m(Unknown Source)
at ro.sync.exml.options.Options.init(Unknown Source)
at ro.sync.exml.options.Options.init(Unknown Source)
at ro.sync.exml.options.Options.getInstance(Unknown Source)
at ro.sync.exml.options.Options.getInstance(Unknown Source)
at ro.sync.util.editorvars.EditorVariables.getAdditionalFrameworksDirs(Unknown Source)
at ro.sync.util.editorvars.EditorVariables.getAllFrameworksDirs(Unknown Source)