ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Munz" <mm...@apelon.com>
Subject Classloader problem - ZipException with Log4j, Junit, and Ant
Date Mon, 02 Jun 2003 18:35:44 GMT
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.
 
java.util.zip.ZipException: error in opening zip file
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:112)
      at java.util.zip.ZipFile.<init>(ZipFile.java:128)
      at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:867)
      at org.apache.tools.ant.AntClassLoader.getResource(AntClassLoader.java:796)
      at org.apache.log4j.helpers.Loader.getResource(Loader.java:78)
      at org.apache.log4j.LogManager.<clinit>(LogManager.java:94)
      at org.apache.log4j.Logger.getLogger(Logger.java:94)
      at com.apelon.skunkworks.lexnet.indexcreator.Indexer.<init>(Indexer.java:25)
      at com.apelon.skunkworks.lexnet.test.DatabaseTestSetup.setUp(DatabaseTestSetup.java:49)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at junit.framework.TestSuite.runTest(TestSuite.java:208)
      at junit.framework.TestSuite.run(TestSuite.java:203)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java:848)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:556)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java:532)
      at com.apelon.emr.projectbuilder.core.RunTestsTask.execute(RunTestsTask.java:26)
      at com.apelon.emr.projectbuilder.core.EmrTaskInvoker.execute(EmrTaskInvoker.java:69)
      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:193)
      at org.apache.tools.ant.Task.perform(Task.java:341)
      at org.apache.tools.ant.Target.execute(Target.java:309)
      at org.apache.tools.ant.Target.performTasks(Target.java:336)
      at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
      at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
      at org.apache.tools.ant.Main.runBuild(Main.java:609)
      at org.apache.tools.ant.Main.start(Main.java:196)
      at org.apache.tools.ant.Main.main(Main.java:235)
 
  - Matt Munz
     mmunz@apelon.com
 
Mime
View raw message