
Florent, What version of oXygen are you using? My first guess is that the DTDDVFactory and DTDDVFactoryImpl classes come from Java classloaders somehow which causes the ClassCastException. xDB 10 depends on Xerces 2.9.1, but so does, I believe, Oxygen. Vojtech -- Vojtech Toman Consultant Software Engineer EMC | Information Intelligence Group vojtech.toman@emc.com http://developer.emc.com/xmltech
-----Original Message----- From: oxygen-user-bounces@oxygenxml.com [mailto:oxygen-user- bounces@oxygenxml.com] On Behalf Of Florent Georges Sent: Friday, April 08, 2011 8:47 PM To: oXygen User ML Subject: [oXygen-user] Saving a document in EMC's xDB
Hi,
I have configured a Data Source for xDB (from EMC, version 10.0.0) and added the following 4 JARs from the xDB lib/ dir, as stated in the oXygen documentation:
xhive.jar antlr-runtime.jar icu4j.jar google-collect.jar
I created a new connection and I can browse the xDB libaries and open XML documents. If I modify a document and try to save it, I receive an error dialog box saying: "DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory." If I enable logging, I get the following:
180070 DEBUG [ AWT-EventQueue-1 ] ro.sync.io.z - setIsCanceled called true 180070 DEBUG [ class ro.sync.exml.editor.m.f ] ro.sync.io.z - hide() 180071 DEBUG [ class ro.sync.exml.editor.m.f ] ro.sync.exml.editor.m.f - java.io.IOException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. java.io.IOException: DTD factory class org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl does not extend from DTDDVFactory. at ro.sync.db.nxd.xhive.XHiveSession$_f.close(Unknown Source) at sun.nio.cs.StreamEncoder.implClose(StreamEncoder.java:301) at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:130) at java.io.OutputStreamWriter.close(OutputStreamWriter.java:216) at java.io.FilterWriter.close(FilterWriter.java:87) at java.io.BufferedWriter.close(BufferedWriter.java:248) at ro.sync.exml.editor.gd.m(Unknown Source) at ro.sync.exml.editor.gd.n(Unknown Source) at ro.sync.exml.editor.ze.saveDocument(Unknown Source) at ro.sync.exml.editor.m.f.chd(Unknown Source) at ro.sync.exml.editor.m.f$1.actionPerformed(Unknown Source) at ro.sync.ui.application.b.q$_b$1.tkh(Unknown Source) at ro.sync.ui.application.q.run(Unknown Source)
Do you have any idea of what's wrong? A classpath problem?
Regards,
-- Florent Georges http://fgeorges.org/
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user