ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Munz" <>
Subject RE: Classloader problem - ZipException with Log4j, Junit, and Ant
Date Mon, 02 Jun 2003 21:03:42 GMT
  Thanks for your help.  I was able to solve this by modifying the junit classpath, which
I had misconfigured.   I must say that I'm a bit concerned by the fact that all of these OSS
projects use different classloaders, especially considering that two of them are Apache projects...
  - Matt

	-----Original Message----- 
	From: Antoine Levy-Lambert [] 
	Sent: Mon 6/2/2003 4:15 PM 
	To: Ant Users List 
	Subject: Re: Classloader problem - ZipException with Log4j, Junit, and Ant

	Hi Matt,
	Try to run ant with the -verbose command line switch turned on, maybe you
	can find out which zip file or jar file ant has a problem opening.
	Could you let us know :
	where is located your junit.jar file ?
	where is your log4j.jar ?
	where did you install ant ?
	send us the output of ant -verbose, and the part of your build file which
	invokes JUnit too.
	Background info :
	Have a look at this URL which mentions some
	special classpath requirements concerning junit.
	To oversimplify the situation, my understanding is that you have to have
	junit.jar under $ANT_HOME/lib for junit to run properly.
	From this URL you can
	do searches in the user list.
	Also read this :
	If you absolutely want to enter a new bug report :
	(I would wait a bit at this stage)
	If you think that these classpath issues/informations are not related to
	your problem or cannot help you solve it, then search on to see whether someone has already had a
	similar problem. I just have had a look myself and I do not see anything
	----- Original Message -----
	From: "Matt Munz" <>
	To: <>
	Sent: Monday, June 02, 2003 8:35 PM
	Subject: Classloader problem - ZipException with Log4j, Junit, and Ant
	> Hi all,
	>   Thanks for making this useful tool available.
	>   I am running into some repetitive (recursive?) code that puts my build
	into an infinite loop that I must terminate manually.  I see the following
	output over and over.
	>   This is apparently a disagreement between Ant, Log4j, and Junit, as this
	error occurs when trying to create a new Log4j Logger from within a Junit
	class, invoked from Ant using the JUnit task.
	>   Any ideas?  Should I enter this in the bug tracking system?  I am also
	curious about the executeInVM() call, since I set "Fork" to true on the
	JUnit Task...
	>   Any help would be greatly appreciated.
	> error in opening zip file
	>       at Method)
	>       at<init>(
	>       at<init>(
	>       at
	>       at
	>       at org.apache.log4j.helpers.Loader.getResource(
	>       at org.apache.log4j.LogManager.<clinit>(
	>       at org.apache.log4j.Logger.getLogger(
	>       at
	>       at
	>       at junit.extensions.TestSetup$1.protect(
	>       at junit.framework.TestResult.runProtected(
	>       at
	>       at junit.framework.TestSuite.runTest(
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>       at
	>   - Matt Munz
	To unsubscribe, e-mail:
	For additional commands, e-mail:

  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message