You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brice Copy <br...@cern.ch> on 2004/04/15 16:47:20 UTC
Infamous Junit classloader bug
Hello,
Has anyone managed to patch the infamous JUnit classloader bug when
running their unit tests with maven ?
(the bug is documented here : http://junit.sourceforge.net/doc/faq/faq.htm
and fixes are http://www.artima.com/forums/flat.jsp?forum=121&thread=7886
and here http://users.rcn.com/scottstirling/2003/07/19.html but it's
not been released as a JUnit build yet)
Because my unit test cases use the DOM classes, I get the following
error when running "maven test:test" :
--
BUILD FAILED
File...... file:/C:/Documents and
Settings/bcopy/.maven/plugins/maven-test-plugin-1.4/
Element... junit
Line...... 94
Column.... 39
Class org/w3c/dom/Element violates loader constraints
Total time: 29 seconds
Finished at: Thu Apr 15 16:30:32 CEST 2004
--
I tried to change a few properties here and there, but it's either the
taskdefs cannot be found, or this classloader problem.
Funny thing, the bug doesn't occur when I launch "maven jcoverage" - my
tests complete succesfully.
Has anyone managed to integrate a patch for this bug in the maven
classpath ?
(I could patch the official junit 3.8.1 JAR file distributed with Maven,
but I'd rather not - I know the patch for this bug is in JUnit CVS - but
yet unreleased)
Thanks for any hints on the subject,
Brice
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Infamous Junit classloader bug
Posted by Sean Radford <sr...@bladesystems.co.uk>.
Yes, it is the nasty delegating classloader of Ant that is causing the
problem...
http://femur/roller/page/sradford/Weblog/20040325#classcastexception_and_junit
Sean
On Thu, 2004-04-15 at 15:52, Brice Copy wrote:
> The problem mentionned above is solved.
>
> I came across
> http://maven.apache.org/faq.html#unit-test-14
> and added
> maven.junit.fork=yes
>
> to my project properties.
>
> Perhaps the FAQ could be more precise, and include a sample error
> message like :
>
> Class org/w3c/dom/Element violates loader constraints
>
> Cheers
>
> Brice
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
Dr. Sean Radford, MBBS, MSc
sradford@bladesystems.co.uk
http://bladesys.demon.co.uk/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Infamous Junit classloader bug
Posted by Brice Copy <br...@cern.ch>.
The problem mentionned above is solved.
I came across
http://maven.apache.org/faq.html#unit-test-14
and added
maven.junit.fork=yes
to my project properties.
Perhaps the FAQ could be more precise, and include a sample error
message like :
Class org/w3c/dom/Element violates loader constraints
Cheers
Brice
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: AW: Problem with RC2's site goal
Posted by Brian Enigma <en...@netninja.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I ran into what I think was the same problem about a month ago
(it's hard to tell because the original post in this thread did not
include the error messages or line number). I guess there is something
in RC2 that works in Windows does not work in Unix. At any rate, I
have been told it has been fixed in cvs (which does not help me,
considering I don't really want/need bleeding-edge cvs code), but you
can fix it on your own system by tweaking that stylesheet line. Check
out this message in the archive:
http://nagoya.apache.org/eyebrowse/ReadMsg?
listName=users@maven.apache.org&msgNo=11599
-Brian
On Apr 19, 2004, at 10:30 AM, Mark R. Diggory wrote:
> I just upgraded as well and am getting this problem too. I deleted all
> my .maven repository contents and let it download everything again,
> but this doesn't help. There may have been previous discussion about
> this issue. We should review the list archives.
>
> -Mark
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
iD8DBQFAhBdN0dKNWt3rpSURAt/9AKC861OCRI0/dOia55REbJ+7pU6wagCgn9o0
um591eNGbDL85N5l3Z9C82c=
=hoIm
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: AW: Problem with RC2's site goal
Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
I just upgraded as well and am getting this problem too. I deleted all
my .maven repository contents and let it download everything again, but
this doesn't help. There may have been previous discussion about this
issue. We should review the list archives.
-Mark
Christian Nill wrote:
>Just in case: the XDoc-Plugin in Version 1.6
>
>-----Ursprüngliche Nachricht-----
>Von: Christian Nill [mailto:cni@mms-dresden.de]
>Gesendet: Montag, 19. April 2004 18:38
>An: Maven Users List
>Betreff: Problem with RC2's site goal
>
>
>Hello,
>
>This failed build cited below is driving me crazy. After migrating from RC1 to RC2 the
>site goal doesn't succeed any longer. The position on which the build process halts is the
>line marked with the arrow:
>
> <j:file name="${outFile}" encoding="${outputencoding}"
> omitXmlDeclaration="true" outputMode="xml"
> prettyPrint="no">
>---> <j:include uri="${stylesheet.toString()}"/>
> </j:file>
>
>What is that line doing? Where does want the stylesheet information from? Is there
>anything left for me to configure?
>
>Thanks in advance
>Christian
>
>---
>maven-linkcheck-plugin: Proxy User:null
>Found 0 files so far.
> Memory: 15M/19M
>Validating build/build.html
>Validating projekthomepage/pflege.html
>Validating projekthomepage/pfade_und_parameter.html
>Validating projekthomepage/manuelles_rebuild.html
>Validating projekthomepage/news.html
>Validating projekthomepage/beispiel.html
>Validating reiko1/links.html
>Validating license.html
>Validating linkcheck.html
>Validating cvs-usage.html
>Validating index.html
>Validating maven-reports.html
>Validating dependencies.html
>Validating issue-tracking.html
>Validating mail-lists.html
>Validating project-info.html
>Validating team-list.html
>Validating links.html
>Validating news.html
>Validating umgebungen.html
>maven-linkcheck-plugin:report-real:
> [echo] Generating /opt/tomcat/anthill-1.7.0.162/work/reiko2/target/docs/linkcheck.html
>from /opt/tomcat/anthill-1.7.0.162/work/reiko2/target/linkcheck/docs/linkcheck.xml
>
>BUILD FAILED
>File...... file:/opt/tomcat/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly
>Element... j:include
>Line...... 345
>Column.... 54
>null:-1:-1: <null> Could not parse Jelly script
>Total time: 21 seconds
>Finished at: Mon Apr 19 18:11:04 CEST 2004
>
>
>---------------------------------------------------------------------
>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
AW: Problem with RC2's site goal
Posted by Christian Nill <cn...@mms-dresden.de>.
Just in case: the XDoc-Plugin in Version 1.6
-----Ursprüngliche Nachricht-----
Von: Christian Nill [mailto:cni@mms-dresden.de]
Gesendet: Montag, 19. April 2004 18:38
An: Maven Users List
Betreff: Problem with RC2's site goal
Hello,
This failed build cited below is driving me crazy. After migrating from RC1 to RC2 the
site goal doesn't succeed any longer. The position on which the build process halts is the
line marked with the arrow:
<j:file name="${outFile}" encoding="${outputencoding}"
omitXmlDeclaration="true" outputMode="xml"
prettyPrint="no">
---> <j:include uri="${stylesheet.toString()}"/>
</j:file>
What is that line doing? Where does want the stylesheet information from? Is there
anything left for me to configure?
Thanks in advance
Christian
---
maven-linkcheck-plugin: Proxy User:null
Found 0 files so far.
Memory: 15M/19M
Validating build/build.html
Validating projekthomepage/pflege.html
Validating projekthomepage/pfade_und_parameter.html
Validating projekthomepage/manuelles_rebuild.html
Validating projekthomepage/news.html
Validating projekthomepage/beispiel.html
Validating reiko1/links.html
Validating license.html
Validating linkcheck.html
Validating cvs-usage.html
Validating index.html
Validating maven-reports.html
Validating dependencies.html
Validating issue-tracking.html
Validating mail-lists.html
Validating project-info.html
Validating team-list.html
Validating links.html
Validating news.html
Validating umgebungen.html
maven-linkcheck-plugin:report-real:
[echo] Generating /opt/tomcat/anthill-1.7.0.162/work/reiko2/target/docs/linkcheck.html
from /opt/tomcat/anthill-1.7.0.162/work/reiko2/target/linkcheck/docs/linkcheck.xml
BUILD FAILED
File...... file:/opt/tomcat/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly
Element... j:include
Line...... 345
Column.... 54
null:-1:-1: <null> Could not parse Jelly script
Total time: 21 seconds
Finished at: Mon Apr 19 18:11:04 CEST 2004
---------------------------------------------------------------------
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
Problem with RC2's site goal
Posted by Christian Nill <cn...@mms-dresden.de>.
Hello,
This failed build cited below is driving me crazy. After migrating from RC1 to RC2 the
site goal doesn't succeed any longer. The position on which the build process halts is the
line marked with the arrow:
<j:file name="${outFile}" encoding="${outputencoding}"
omitXmlDeclaration="true" outputMode="xml"
prettyPrint="no">
---> <j:include uri="${stylesheet.toString()}"/>
</j:file>
What is that line doing? Where does want the stylesheet information from? Is there
anything left for me to configure?
Thanks in advance
Christian
---
maven-linkcheck-plugin: Proxy User:null
Found 0 files so far.
Memory: 15M/19M
Validating build/build.html
Validating projekthomepage/pflege.html
Validating projekthomepage/pfade_und_parameter.html
Validating projekthomepage/manuelles_rebuild.html
Validating projekthomepage/news.html
Validating projekthomepage/beispiel.html
Validating reiko1/links.html
Validating license.html
Validating linkcheck.html
Validating cvs-usage.html
Validating index.html
Validating maven-reports.html
Validating dependencies.html
Validating issue-tracking.html
Validating mail-lists.html
Validating project-info.html
Validating team-list.html
Validating links.html
Validating news.html
Validating umgebungen.html
maven-linkcheck-plugin:report-real:
[echo] Generating /opt/tomcat/anthill-1.7.0.162/work/reiko2/target/docs/linkcheck.html
from /opt/tomcat/anthill-1.7.0.162/work/reiko2/target/linkcheck/docs/linkcheck.xml
BUILD FAILED
File...... file:/opt/tomcat/.maven/plugins/maven-xdoc-plugin-1.6/plugin.jelly
Element... j:include
Line...... 345
Column.... 54
null:-1:-1: <null> Could not parse Jelly script
Total time: 21 seconds
Finished at: Mon Apr 19 18:11:04 CEST 2004
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org