Its very probably an IDE problem. BTW I think modern crimson.jar distro's come with jaxp included so I think jaxp.jar might be optional.
See what happens if you take crimson.jar out of your classpath - it might be your idea's putting one in there. BTW dom4j-core.jar doesn't include the Jaxen code, so if you want XPath support, I'd probably use dom4j.jar James ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "James Strachan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, September 27, 2001 3:03 PM Subject: Re: [dom4j-user] dom4j, crimson and junit > Hi James, > > I'm using following jars: > > junit.jar > crimson.jar > jaxp.jar > dom4j-core.jar > > The testUnit is excuete using my IDE (Netbeans 3.2.1), do you think it's a > IDE problem. I already use a newer crimson.jar, but crimson.jar come now with > inbuilt jaxp, which is inconvient, because i don't like to parser in > classpath when I want to switch (e.g. to xerces). > > Any ideas? > > Bye > > Toby > > > > What was the classpath that you (or JUnit) was using? It oculd be that you > > are using dom4j-full.jar (which comes with SAX) as well as crimson.jar > > (which comes with SAX). > > > > Maybe just using these JARs will help > > > > dom4j.jar > > crimson.jar > > junit.jar > > > > James > > ----- Original Message ----- > > From: <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Sent: Thursday, September 27, 2001 1:01 PM > > Subject: [dom4j-user] dom4j, crimson and junit > > > > > > > Hi Folks, > > > > > > when I try to run a JUnit TestCase using the bundeld Swing-TestRunner I > > got > > > following exception: > > > > > > java.lang.LinkageError: Class org/xml/sax/ContentHandler violates loader > > > constraints > > > > > > at java.lang.ClassLoader.defineClass0(Native Method) > > > > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486) > > > > > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) > > > > > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) > > > > > > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:297) > > > > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:253) > > > > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) > > > > > > at java.lang.ClassLoader.defineClass0(Native Method) > > > > > > at java.lang.ClassLoader.defineClass(ClassLoader.java:486) > > > > > > at > > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111) > > > > > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:248) > > > > > > at java.net.URLClassLoader.access$100(URLClassLoader.java:56) > > > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:195) > > > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:188) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:297) > > > > > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:253) > > > > > > at java.lang.ClassLoader.findSystemClass(ClassLoader.java:620) > > > > > > at > > junit.runner.TestCaseClassLoader.loadClass(TestCaseClassLoader.java:94) > > > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:253) > > > > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) > > > > > > at java.lang.Class.forName0(Native Method) > > > > > > at java.lang.Class.forName(Class.java:120) > > > > > > at > > > > > > com.ceyoniq.healthcare.hermes.xml.transform.TransformationProxy.<init>(Trans > > formationProxy.java:80) > > > > > > at > > > > > > com.ceyoniq.healthcare.hermes.xml.XMLEnvelopePool.createNewTemplate(XMLEnvel > > opePool.java:96) > > > > > > at > > > > > > com.ceyoniq.healthcare.hermes.xml.XMLEnvelopePool.<init>(XMLEnvelopePool.jav > > a:64) > > > > > > at > > > > > > com.ceyoniq.healthcare.hermes.xml.XMLEnvelopePool.newInstance(XMLEnvelopePoo > > l.java:77) > > > > > > at > > > > > > com.ceyoniq.healthcare.hermes.xml.test.EnvelopePoolTest.testCheckOut(Envelop > > ePoolTest.java:56) > > > > > > > > > The instance to test uses SAXReader and the jaxm-crimson couple in order > > > create the SAX-Events that dom4j needs. Although it seems to be more a > > > classloader bug in JUnit i want to ask if you have similar problems. > > > > > > Thx and bye > > > Toby > > > > > > -- > > > GMX - Die Kommunikationsplattform im Internet. > > > http://www.gmx.net > > > > > > > > > _______________________________________________ > > > dom4j-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/dom4j-user > > > > > > > > > _________________________________________________________ > > Do You Yahoo!? > > Get your free @yahoo.com address at http://mail.yahoo.com > > > > > > -- > GMX - Die Kommunikationsplattform im Internet. > http://www.gmx.net _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user
