JUnit uses a custom class loader in UI mode so that you don't have to restart it every time you update your class files.  This causes problems with XML parsing and RMI.  See http://junit.sourceforge.net/doc/faq/faq.htm#ClassLoader for details.
 
-----Original Message-----
From: Givant, Alexander [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 3:20 PM
To: '[EMAIL PROTECTED]'
Subject: [Eap-list] JUnit problem

Hi, guys!

 

When I try to execute JUnit test in text mode, everything is OK, but if I switch to UI mode, I'm getting following message:

 

java.lang.LinkageError: class org/w3c/dom/Document violates loader constraints

and it happens when I try to call function getElementsByTagName() in Document class.

 

By the way I have the same strange message when I try to execute JUnit from Ant build file.

 

Any ideas (may be I have some wrong XML parser)?

Any comments will be appreciated.

 

Alex Givant.

 

Reply via email to