(java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange)
I fixed the problem by putting the xml-apis.jar from the latest Xerces into the $MAVEN_HOME/lib directory.
Was this the correct thing to do? Or did I just cover up some larger issue by doing so? It just seems like a weird fix, and I've never heard
anyone else talk about having to do this on the list here, so I'm wondering if there's something else going on.
Christopher Farnham Senior Consultant at Wrycan, Inc.
[EMAIL PROTECTED] http://www.wrycan.com
[junit] Running com.wrycan.common.io.FilePipeTest [junit] java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange [junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Sou rce) [junit] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocument Builder(Unknown Source) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.getDocumentBuilder(XMLJUnitResultFormatter.java:93) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.startTestSuite(XMLJUnitResultFormatter.java:138) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. fireStartTestSuite(JUnitTestRunner.java:445) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. run(JUnitTestRunner.java:279) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:536) [junit] Exception in thread "main" [junit] [ERROR] TEST com.wrycan.common.io.FilePipeTest FAILED [junit] Running com.wrycan.common.io.ZipUtilsTest [junit] java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange [junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Sou rce) [junit] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocument Builder(Unknown Source) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.getDocumentBuilder(XMLJUnitResultFormatter.java:93) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.startTestSuite(XMLJUnitResultFormatter.java:138) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. fireStartTestSuite(JUnitTestRunner.java:445) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. run(JUnitTestRunner.java:279) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:536) [junit] Exception in thread "main" [junit] [ERROR] TEST com.wrycan.common.io.ZipUtilsTest FAILED [junit] Running com.wrycan.common.util.GlobalUniqueObjectTest [junit] java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange [junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Sou rce) [junit] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocument Builder(Unknown Source) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.getDocumentBuilder(XMLJUnitResultFormatter.java:93) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.startTestSuite(XMLJUnitResultFormatter.java:138) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. fireStartTestSuite(JUnitTestRunner.java:445) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. run(JUnitTestRunner.java:279) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:536) [junit] Exception in thread "main" [junit] [ERROR] TEST com.wrycan.common.util.GlobalUniqueObjectTest FAILED [junit] Running com.wrycan.common.xml.SchemaValidatorTest [junit] java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange [junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Sou rce) [junit] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocument Builder(Unknown Source) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.getDocumentBuilder(XMLJUnitResultFormatter.java:93) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.startTestSuite(XMLJUnitResultFormatter.java:138) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. fireStartTestSuite(JUnitTestRunner.java:445) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. run(JUnitTestRunner.java:279) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:536) [junit] Exception in thread "main" [junit] [ERROR] TEST com.wrycan.common.xml.SchemaValidatorTest FAILED [junit] Running com.wrycan.common.xml.XSLTransformerTest [junit] java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange [junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Sou rce) [junit] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocument Builder(Unknown Source) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.getDocumentBuilder(XMLJUnitResultFormatter.java:93) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.startTestSuite(XMLJUnitResultFormatter.java:138) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. fireStartTestSuite(JUnitTestRunner.java:445) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. run(JUnitTestRunner.java:279) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:536) [junit] Exception in thread "main" [junit] [ERROR] TEST com.wrycan.common.xml.XSLTransformerTest FAILED [junit] Running TestOfTestsTest [junit] java.lang.NoClassDefFoundError: org/w3c/dom/ranges/DocumentRange [junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at java.lang.ClassLoader.defineClass0(Native Method) [junit] at java.lang.ClassLoader.defineClass(ClassLoader.java:537) [junit] at java.security.SecureClassLoader.defineClass(SecureClassLoader .java:123) [junit] at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) [junit] at java.net.URLClassLoader.access$100(URLClassLoader.java:55) [junit] at java.net.URLClassLoader$1.run(URLClassLoader.java:194) [junit] at java.security.AccessController.doPrivileged(Native Method) [junit] at java.net.URLClassLoader.findClass(URLClassLoader.java:187) [junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:289) [junit] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
[junit] at java.lang.ClassLoader.loadClass(ClassLoader.java:235) [junit] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
[junit] at org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Sou rce) [junit] at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocument Builder(Unknown Source) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.getDocumentBuilder(XMLJUnitResultFormatter.java:93) [junit] at org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFo rmatter.startTestSuite(XMLJUnitResultFormatter.java:138) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. fireStartTestSuite(JUnitTestRunner.java:445) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. run(JUnitTestRunner.java:279) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner. main(JUnitTestRunner.java:536) [junit] Exception in thread "main" [junit] [ERROR] TEST TestOfTestsTest FAILED
BUILD FAILED File...... file:/C:/Documents and Settings/cronik/.maven/plugins/maven-test-plug in-1.4/ Element... fail Line...... 130 Column.... 54 There were test failures. Total time: 9 seconds Finished at: Mon Jan 12 10:07:32 EST 2004
C:\Work\wrycan\core>maven jar:install
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]