Le 19/10/2013 06:21, Alex Buloichik a écrit :
Hi !

Probably it's not an jOpenDocument's issue, but my configuration issue.

I just included jOpenDocument-1.3.jar into classpath, then try to work with
xsd schemas:

SchemaFactory factory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);

Exception is:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/iso_relax/verifier/VerifierConfigurationException

It is indeed specified by jOpenDocument : META-INF/services/javax.xml.validation.SchemaFactory contains org.iso_relax.verifier.jaxp.validation.RELAXNGSchemaFactoryImpl which needs VerifierConfigurationException. To solve this you could either 1. as specified in the README add msv.jar, relaxngDatatype.jar, xsdlib.jar and isorelax.jar from http://java.net/downloads/msv/releases/msv.20090415.zip which would allow you to use ODPackage.validateSubDocuments()
2. define the system property 
"javax.xml.validation.SchemaFactory:http://relaxng.org/ns/structure/1.0";
3. remove the javax.xml.validation.SchemaFactory file from the jar

Cheers,
Sylvain

--

--- You received this message because you are subscribed to the Google Groups "jOpenDocument" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jopendocument+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to