set the property maven.junit.fork=true in project.properties.
-----Original Message----- From: Dominik Dahlem [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:14 PM To: 'Maven Users List' Subject: RE: JUnit forking problem Hi, JUnit bellied up with a LinkageError: Testcase: testXPathExpression took 0.047 sec Caused an ERROR loader constraints violated when linking org/w3c/dom/Node class java.lang.LinkageError: loader constraints violated when linking org/w3c/dom/Node class at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(TransformerI dentityImpl.java:122) at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Transfo rmerFactoryImpl.java:802) I'm testing a class which evaluates XPath expressions. My first mistake was actually a missing jar-file (xml-apis.jar). But still with this jar-file in the classpath I got the same failure. I set the maven.junit.fork property to yes and it worked fine. Does that make sense? I'm using Maven 1.0 beta 9 with JDK 1.4.1_02. Thx, Dominik +---------------------------------------------------------------------+ _/_/_/_/_/ _/_/_/ __/_/_/_/ Dominik Dahlem _/ _/ _/ _/ _/ M.Sc. student, Computer Science _/ _/ _/ _/ Trinity College Dublin _/ _/ _/ _/ tel : +353 (0)1 608 _/ _/ _/ _/ _/ email: [EMAIL PROTECTED] _/ _/_/_/ __/_/_/_/ www : http://www.cs.tcd.ie/~dahlemd +---------------------------------------------------------------------+ -----Original Message----- From: Ben Walding [mailto:[EMAIL PROTECTED] Sent: 15 July 2003 00:40 To: Maven Users List Subject: Re: JUnit forking problem You're going to need to post more information. What does maven say on the command line. Are there any results in target/test-reports? Dominik Dahlem wrote: >Hi all, > >I have a problem running a test with the property maven.junit.fork=yes. >In default mode, this test runs fine. I ran the "maven test -X" to >check the classpath with no result. Both classpaths (fork=yes/no) >contain the jar files needed to run the test. > >Is there any issue? Am I missing something? > >Thx, >Dominik > >+---------------------------------------------------------------------+ > _/_/_/_/_/ _/_/_/ __/_/_/_/ Dominik Dahlem > _/ _/ _/ _/ _/ M.Sc. student, Computer Science > _/ _/ _/ _/ Trinity College Dublin > _/ _/ _/ _/ tel : +353 (0)1 608 > _/ _/ _/ _/ _/ email: [EMAIL PROTECTED] > _/ _/_/_/ __/_/_/_/ www : http://www.cs.tcd.ie/~dahlemd >+---------------------------------------------------------------------+ > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]