Plugin: Problem with org.apache.xerces [message #589278] |
Thu, 23 January 2003 11:54 |
Olga Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Hallo All!
I'm developing an Eclipse Plugin and have a problem with
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.
By doing
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl dbf = new
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl();
I get org.apache.crimson.jaxp.DocumentBuilderFactoryImpl, but I need to get
the org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.
If I do so:
System.setProperty("javax.xml.parsers.DocumentBuilderFactory ",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
DocumentBuilderFactory dbf = DocumentBuilderFactoryImpl.newInstance();
I get an Error "Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
not found".
And if I try to do so:
System.setProperty("javax.xml.parsers.DocumentBuilderFactory ",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl dbf = new
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl();
it works, but only the first time, the second time I start it I get an error
"Provider org.apache.xerces.jaxp.DocumentBuilderFactoryImpl not found".
When it helps, plugin.xml that I have:
....
<runtime>
<library name="externalJars/xerces.jar"/>
...
</runtime>
How can I fix it? Any help is welcome.
Thanks,
Olga
|
|
|
Powered by
FUDForum. Page generated in 0.02893 seconds