Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 65207 invoked from network); 21 Oct 2009 07:22:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Oct 2009 07:22:39 -0000 Received: (qmail 32908 invoked by uid 500); 21 Oct 2009 07:22:36 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 32810 invoked by uid 500); 21 Oct 2009 07:22:36 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 32800 invoked by uid 99); 21 Oct 2009 07:22:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 07:22:36 +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: domain of roelveldhuizen@gmail.com designates 209.85.220.222 as permitted sender) Received: from [209.85.220.222] (HELO mail-fx0-f222.google.com) (209.85.220.222) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Oct 2009 07:22:26 +0000 Received: by fxm22 with SMTP id 22so6935979fxm.12 for ; Wed, 21 Oct 2009 00:22:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=cwYy/wJsIdlMDQ1dsL4Vw4r5OCy7WO+TFDUeHF++wUY=; b=lClZfPxvrY0jJl6aYyikLnKZiJ5L8tsJf1x0gduAsKsSfrdzPdud2GSO8aioCOuXJD 52FyDlUVMTf9IlRBy7q8fCwHXzOkGSW9osu6d1Z7ilouPusgxip/BT/X/dkYeSp6SCBv 2Xz0fawXWQIwjkSkawTppr0Av973Ecbd5UPWc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=X3LlCVAljtw7kwmy/5X5BbC7PnlX5/04sEkvLoS1xq3mx1qPRTG4BblSRW03d4WAsK O3/XnQFk92FSFXWp3UEGEBGCdTB5GPlxsDfmSto5DlgCXjoDljXgUiUgjnXr9kcWVqev dT+ArotCwmh5iz3lviIJAxf8Nq+4Ch6FLtLWc= MIME-Version: 1.0 Received: by 10.204.8.199 with SMTP id i7mr7487284bki.37.1256109725943; Wed, 21 Oct 2009 00:22:05 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Oct 2009 09:22:05 +0200 Message-ID: Subject: Re: Test fails with Maven works with ant. From: Roel Veldhuizen To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org The JDK's are both set 1.6. I'm using the default setting of Maven 2.0.9 ( at least nothing is defined concerning the tests ). Bellow I pasted the ant concerning the junit tests. Maybe that will give some insights 2009/10/21 Anders Hammar : > What JDK are you using? Is the executing environment the exact same for > Maven and Ant? > > /Anders > > On Tue, Oct 20, 2009 at 21:12, Roel Veldhuizen = wrote: > >> I have a test that fails when I use Maven and works when I use ant. >> The test looks like this: (junit 4.7) >> >> =A0 =A0@Test >> =A0 =A0public void Login() { >> =A0 =A0 =A0 =A0SugarBean b =3D new SugarBean(); >> =A0 =A0 =A0 =A0b.login("roelveldhuizen", "md5trallala"); >> =A0 =A0} >> >> The bean is going to invoke a web service which is build using Axis >> 1.4. The test will generate the following Exception >> >> java.lang.ClassFormatError: Absent Code attribute in method that is >> not native or abstract in class file javax/xml/rpc/ServiceException >> at java.lang.ClassLoader.defineClass1(Native Method) >> at java.lang.ClassLoader.defineClass(ClassLoader.java:621) >> at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12= 4) >> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >> at java.net.URLClassLoader.access$000(URLClassLoader.java:56) >> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >> at java.security.AccessController.doPrivileged(Native Method) >> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:307) >> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:252) >> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) >> at com.paston.sugarcrm.beans.SugarBean.login(SugarBean.java:21) >> >> --------------------------------------------------------------------- >> 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