I've got a parser extending DOMParser and call parser.setDocumentClassName(MetaDataDocument.class.getName()) . The problem is, the class MetaDataDocument is in a child classloader and Xerces reports that it can't find it.....
[xmlc] Error: java.lang.IllegalArgumentException: MissingDocumentClassName: The class name of the document factory "org.enhydra.xml.xmlc.metadata.MetaDataDocument" used to construct the DOM tree could not be found. [xmlc] java.lang.IllegalArgumentException: MissingDocumentClassName: The class name of the document factory "org.enhydra.xml.xmlc.metadata.MetaDataDocument" used to construct the DOM tree could not be found.
As you may recognize, this is in the context of an Ant task. Specifically, the XMLC Ant task. Ant includes XercesImpl.jar in ANT_HOME/lib. My library is added to the taskdef via a <classpath> element. I know Xerces runs through some fancy routines to find classloaders, but it doesn't seem to be doing the job here. I'm wondering if you have any suggestions to resolve this issue?
Up to now, I've wrapped Xerces in my own namespace and added it to the <classpath> declaration in the build file. Now I'm trying to utilize XercesImpl.jar already included on the classpath (such as in Ant and most J2EE containers). This is keeping me from being able to utilize the global instance and resort to using my own version packaged with my library. I hope there is a way to resolve this!
Jake --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]