| [news.eclipse.platform.rcp] Re: Classpath Problems working with Libs that use Reflection |
Try to set the ContextClassLoader before any call to JDOM. It might work this way if JDOM is using the ContextClassLoader for locating the SAXParser.The problem is, that JDom inside its SAXParser uses reflection to instantiate that "org.apache.xerces.parsers.SAXParser". That results in a NoClassFoundException, as the JDom plugin is not having any dependancy to the Xerces plugin. Actually it should not have, because the used Parser is contributable.
Markus Wolf
I have now set "Eclipse-BuddyPolicy: global" to the JDom Plugin and its working! I wonder if that option has any sideeffects, like performance for the lookup?
Btw it did not work using the other Buddy-Policy "registered". I set the JDom Plugin to "Eclipse-BuddyPolicy: registered" and the Xerces Plugin to "Eclipse-RegisterBuddy: foo.bar.xerces". I assume the symbolic ID after Eclipse-RegisterBuddy is free to chose?
Ben