[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.rcp] Classpath Problems working with Libs that use Reflection
|
- From: Benjamin Pasero <bpasero@xxxxxxxxxx>
- Date: Sun, 20 Nov 2005 11:51:45 +0100
- Newsgroups: eclipse.platform.rcp
- Organization: EclipseCorner
- User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
Hi,
my idea was to work with JDom and allow to contribute the used
XML Parser.
Currently my setup is:
- Apache Xerces XML Parser as contributed library plugin
- JDom as library plugin
and a third plugin in which an instance of SAXParser (JDom) is
created with "org.apache.xerces.parsers.SAXParser" as SAX-Parser-Class.
The JDom library plugin is always present, while the XML Parser
plugin can be replaced by another XML Parser contribution.
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.
Everything works just fine as soon as Jdom is made dependant on the
contribution, but hopefully there is a different way?
Any ideas?
Ben