• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JUnit

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure that this is really an XML related issue. It is most likely a compile issue.
LinkageError indicate that a class has some dependency on another class; however, the latter class has incompatibly changed after the compilation of the former class.
Is it possible that one of your classes has changed without recompiling some other dependent class?
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Might be a longshot...But if it is a classpath problem, read more on: http://www.oreilly.com/catalog/javaxslt/chapter/ch05.html second paragraph 'A Simple example' has more info on classpath issues.
 
Create symphonies in seed and soil. For this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic