When Iam running the java programe as standlone is running perfectly but Iam running the file in JUnit Iam getting the error message as follows --------- java.lang.LinkageError: Class org/w3c/dom/Document violates loader constraints at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.lang.ClassLoader.defineClass(ClassLoader.java:426) at junit.runner.TestCaseClassLoader.loadClass(TestCaseClassLoader.java:104) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at EvalBusinessLogic.confirmLogin(EvalBusinessLogic.java:307) at EvalConfirm.testconElementfound(EvalConfirm.java:47) ----------------------------------------- Iam using the Xerces.jar file in the classpath.
Thomas Paul
mister krabs
Ranch Hand
Joined: May 05, 2000
Posts: 13974
posted
0
I have seen this before and I think it is a classpath issue. I am moving this to the XML forum. Also, please change your display name to your real first name - space -you real last name. Thanks.