Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 98961 invoked from network); 13 Aug 2002 18:47:47 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 13 Aug 2002 18:47:47 -0000 Received: (qmail 14701 invoked by uid 97); 13 Aug 2002 18:48:05 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 14684 invoked by uid 97); 13 Aug 2002 18:48:04 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14672 invoked by uid 98); 13 Aug 2002 18:48:04 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Sent: 13 Aug 2002 18:47:37 GMT Message-ID: <3D595448.30706@ehatchersolutions.com> Date: Tue, 13 Aug 2002 14:47:36 -0400 From: Erik Hatcher User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Junit Task, VerifyError, Log4J LogManager References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Did you copy ant.jar also? They come as a set! :) James Krygowski wrote: > Hi Erik- > > when i copy my optional.jar over to my idea lib directory, i end up with a > verify error: > > java.lang.VerifyError: (class: > org/apache/tools/ant/taskdefs/email/EmailTask, method: execute signature: > ()V) Incompatible object argument for function call > > which seems kind of strange. > > jk > > >>-----Original Message----- >>From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com] >>Sent: Tuesday, August 13, 2002 2:32 PM >>To: Ant Users List >>Subject: Re: Junit Task, VerifyError, Log4J LogManager >> >> >>I'm running 1.5 (well, 1.6alpha, actually) in IDEA. Just copy ant.jar >>and optional.jar over to IDEA's lib directory, and of course any other >>dependencies. Basically my IDEA lib directory is mostly a mirror image >>of my ANT_HOME/lib directory. Ugly duplication, but it works fine for me. >> >>James Krygowski wrote: >> >>>Check that--- i can get it to work using Ant 1.5, but not 1.4.... >>>unfortunately I can't get 1.5 to run in IDEA >>> >>> >>> >>>>-----Original Message----- >>>>From: James Krygowski [mailto:james.krygowski@shaws.com] >>>>Sent: Tuesday, August 13, 2002 2:00 PM >>>>To: Ant Users List >>>>Subject: RE: Junit Task, VerifyError, Log4J LogManager >>>> >>>> >>>>Hi - >>>> >>>>I am running with fork=true for my batchtest tag. I've also >>> >>tried setting >> >>>>fork=true for the junit tag and all permutations between junit/batchtest >>>>defining fork=true. They all result in the same verify error. >>>>BTW this is >>>>true for 1.4 and 1.5. >>>> >>>> >>>name="junit"> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>haltonfailure="no" >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>-----Original Message----- >>>>>From: Dominique Devienne [mailto:DDevienne@lgc.com] >>>>>Sent: Tuesday, August 13, 2002 1:46 PM >>>>>To: 'Ant Users List' >>>>>Subject: RE: Junit Task, VerifyError, Log4J LogManager >>>>> >>>>> >>>>>Add the fork=true to . It might solve it. --DD >>>>> >>>>>-----Original Message----- >>>>>From: James Krygowski [mailto:james.krygowski@shaws.com] >>>>>Sent: Tuesday, August 13, 2002 12:33 PM >>>>>To: ant-user@jakarta.apache.org >>>>>Subject: Junit Task, VerifyError, Log4J LogManager >>>>> >>>>>Hi All- >>>>> >>>>>I've got a suite of JUnit tests that I'd like to run in Ant using >>>>>the JUNIT >>>>>task. I've set up the task and it does run all my tests, >>>>>however, any tests >>>>>that include Log4J fail with the following (output from the Ant Junit >>>>>Report): >>>>> >>>>>Testcase: testGetInstanceOfFactory took 0.24 sec >>>>> Caused an ERROR >>>>>(class: org/apache/log4j/LogManager, method: signature: ()V) >>>>>Incompatible argument to function >>>>>java.lang.VerifyError: (class: org/apache/log4j/LogManager, >>>>>method: >>>>>signature: ()V) Incompatible argument to function >>>>> >>>>>If I run the same tests outside of Ant they run just fine. I've >>>>>checked my >>>>>classpath and there is only one instance of the Log4J jar on the >>>>>classpath. >>>>>The classpath being used by Ant is identical to the classpath in >>>>>the IDE I'm >>>>>using to run the unit tests. >>>>> >>>>>Is this some kind of strange Ant class loader issue? Does >>>> >>anyone have a >> >>>>>suggestion for fixing this? >>>>> >>>>>thanks, >>>>> >>>>>jk >>>>> >>>>> >>>>>-- >>>>>To unsubscribe, e-mail: >>>> >>> >>> >>>>For additional commands, e-mail: >>> > > >>>-- >>>To unsubscribe, e-mail: >>>For additional commands, e-mail: >>> >>> >> >>-- >>To unsubscribe, e-mail: >>For additional commands, e-mail: >> >> >> >>-- >>To unsubscribe, e-mail: >>For additional commands, e-mail: >> >> >> > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > > > -- To unsubscribe, e-mail: For additional commands, e-mail: