Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 812 invoked from network); 14 May 2009 12:19:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 12:19:10 -0000 Received: (qmail 90939 invoked by uid 500); 14 May 2009 12:19:10 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 90846 invoked by uid 500); 14 May 2009 12:19:09 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 90836 invoked by uid 99); 14 May 2009 12:19:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 12:19:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.99.113.22] (HELO prx03.citti.de) (194.99.113.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 12:18:58 +0000 Received: from exchange.citti.de [172.20.8.54] by prx03.citti.de id MA032TIC outgoing id MA032TIC; 14 May 2009 14:17:57 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: ant-problem after upgrading from junit 4.4 to junit 4.6 Date: Thu, 14 May 2009 14:17:55 +0200 Message-ID: <62A558BAAD2B744B92DC9BC72BBACB77088B9A2C@98w3mail1.citti.gv-partner.net> In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ant-problem after upgrading from junit 4.4 to junit 4.6 Thread-Index: AcnUd69NTxLkmVIyTJilzFZmC4RyiQAFbrKg References: <62A558BAAD2B744B92DC9BC72BBACB77088B97EA@98w3mail1.citti.gv-partner.net> From: "Walter, Matthias" To: "Ant Developers List" X-Virus-Checked: Checked by ClamAV on apache.org Hi there, the stacktrace is [junit] Exception in thread "main" java.lang.NoClassDefFoundError: org/j= unit/Assume$AssumptionViolatedException [junit] at org.springframework.test.context.junit4.SpringMethodRoadie.r= unTestMethod(SpringMethodRoadie.java:240) [junit] at org.springframework.test.context.junit4.SpringMethodRoadie$R= unBeforesThenTestThenAfters.run(SpringMethodRoadie.java:333) [junit] at org.springframework.test.context.junit4.SpringMethodRoadie.r= unWithRepetitions(SpringMethodRoadie.java:217) [junit] at org.springframework.test.context.junit4.SpringMethodRoadie.r= unTest(SpringMethodRoadie.java:197) [junit] at org.springframework.test.context.junit4.SpringMethodRoadie.r= un(SpringMethodRoadie.java:143) [junit] at org.springframework.test.context.junit4.SpringJUnit4ClassRun= ner.invokeTestMethod(SpringJUnit4ClassRunner.java:142) [junit] at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUni= t4ClassRunner.java:61) [junit] at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4Cla= ssRunner.java:54) [junit] at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassR= oadie.java:34) [junit] at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoa= die.java:44) [junit] at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4Class= Runner.java:52) [junit] at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java= :39) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner= .run(JUnitTestRunner.java:421) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner= .launch(JUnitTestRunner.java:912) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner= .main(JUnitTestRunner.java:743) The files are compiled against 4.6 and run with 4.6. However, the problem= disappears if I change forkmode from "once" to "perTest". This is doing = the job for me.... Thanks a lot for your help, Matthias -----Urspr=FCngliche Nachricht----- Von: Stefan Bodewig [mailto:bodewig@apache.org]=20 Gesendet: Donnerstag, 14. Mai 2009 11:32 An: dev@ant.apache.org Betreff: Re: ant-problem after upgrading from junit 4.4 to junit 4.6 Hi Matthias, On 2009-05-14, Walter, Matthias wrote: > Hello there, > I'm not quite sure if this is the correct mailing list for my problem, > please forgive me, if not. > I have a problem after upgrading junit from 4.4 to 4.6 on a Hudson > Server. > I get the error message: > [junit] Running org.path.to.my.test.class.SqliteBackupManagerTest > [junit] Testsuite: org.path.to.my.test.class.SqliteBackupManagerTest > /some/path/to/my/build.xml:188: java.lang.NoClassDefFoundError: > org/junit/Assume$AssumptionViolatedException could you provide the full stacktrace (running ant in verbose mode, if necessary)? I've grepped through Ant's sources and can't find any reference to AssumptionViolatedException or he Assume class in Ant's trunk or Ant 1.7.1. It may be some other library/tool that you are using during your test. Cobertura is a likely candidate. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org =EF=BB=BF****************************************************************= **************** Informationen (einschliesslich Pflichtangaben) zu einzelnen, innerhalb de= r EU taetigen Gesellschaften und Zweigniederlassungen der CITTI-Gruppe finden = Sie unter http://www.citti.de/html/pflichtangaben.html. Diese E-Mail enthaelt vertr= auliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige= Adressat sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte = sofort den Absender und vernichten Sie diese E-Mail. Das unerlaubte Kopieren sow= ie die unbefugte Weitergabe dieser E-Mail ist nicht gestattet. Please refer to http://www.citti.de/html/pflichtangaben.html for informat= ion (including mandatory corporate particulars) on selected CITTI branches an= d group companies registered or incorporated in the European Union. This e-mail m= ay contain confidential and/or privileged information. If you are not the intended r= ecipient (or have received this e-mail in error) please notify the sender immediat= ely and delete this e-mail. Any unauthorized copying, disclosure or distribution = of the material in this e-mail is strictly forbidden. *************************************************************************= ******* --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org