• Post Reply Bookmark Topic Watch Topic
  • New Topic

JUnit  RSS feed

 
KVKUMAR
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!