You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Dominik Dahlem <Do...@cs.tcd.ie> on 2003/07/14 19:00:52 UTC

JUnit forking problem

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: Dominik.Dahlem@cs.tcd.ie
  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
+---------------------------------------------------------------------+



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: JUnit forking problem

Posted by "S. Radhakrishnan" <ra...@bsil.com>.
set the property maven.junit.fork=true in project.properties.


-----Original Message-----
From: Dominik Dahlem [mailto:Dominik.Dahlem@cs.tcd.ie]
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: Dominik.Dahlem@cs.tcd.ie
  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
+---------------------------------------------------------------------+

-----Original Message-----
From: Ben Walding [mailto:ben@walding.com] 
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: Dominik.Dahlem@cs.tcd.ie
>  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
>+---------------------------------------------------------------------+
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: JUnit forking problem

Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
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: Dominik.Dahlem@cs.tcd.ie
  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
+---------------------------------------------------------------------+

-----Original Message-----
From: Ben Walding [mailto:ben@walding.com] 
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: Dominik.Dahlem@cs.tcd.ie
>  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
>+---------------------------------------------------------------------+
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: JUnit forking problem

Posted by Ben Walding <be...@walding.com>.
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: Dominik.Dahlem@cs.tcd.ie
>  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
>+---------------------------------------------------------------------+
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: JUnit forking problem

Posted by Dominik Dahlem <Do...@cs.tcd.ie>.
Solved the problem,

I discovered a missing jar-file.
Sorry for the spam...

Dominik

+---------------------------------------------------------------------+
   _/_/_/_/_/  _/_/_/  __/_/_/_/  Dominik Dahlem
      _/     _/    _/  _/     _/  M.Sc. student, Computer Science
     _/     _/        _/     _/   Trinity College Dublin
    _/     _/        _/     _/    tel  : +353 (0)1 608
   _/     _/    _/  _/     _/     email: Dominik.Dahlem@cs.tcd.ie
  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
+---------------------------------------------------------------------+

-----Original Message-----
From: Dominik Dahlem [mailto:Dominik.Dahlem@cs.tcd.ie] 
Sent: 14 July 2003 18:01
To: users@maven.apache.org
Subject: JUnit forking problem


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: Dominik.Dahlem@cs.tcd.ie
  _/      _/_/_/  __/_/_/_/       www  : http://www.cs.tcd.ie/~dahlemd
+---------------------------------------------------------------------+



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org