Remnant Xerces Dependency?
Aaron Kardell <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.xmlc |
|---|---|
| Message-ID | <[email protected]> |
Greetings,
I've been using XMLC 2.2 in production since its release, and I must say --
great job! However, I have uncovered a minor bug -- it appears there is a
remnant Xerces dependency, as adding xercesImpl.jar to the classpath fixes the
problem. Here is the stack trace:
java.lang.NoClassDefFoundError: org/w3c/dom/html/HTMLDOMImplementation
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at
org.enhydra.xml.lazydom.html.LazyHTMLDocument.getImplementation(LazyHTMLDocument.java:198)
at
org.enhydra.apache.xerces.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:901)
at
org.enhydra.apache.xerces.dom.CoreDocumentImpl.importNode(CoreDocumentImpl.java:862)
This occurs when attempting to make the following call:
contentArea.appendChild(contentArea.getOwnerDocument().importNode(mainNode, true));
where both contentArea and mainNode are Elements taken directly from XMLC
generated templates.
Let me know if you have any questions -- I'll be happy to help to help
debug/pinpoint this problem.
Regards,
Aaron
---
Aaron Kardell
Development Manager & Chief Architect of SIPS
Altona Ed, LLC <http://www.altonaed.com/>
[email protected]