From vali@example.com Tue Mar 2 12:28:56 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 60281 invoked from network); 2 Mar 2004 12:28:56 -0000 Received: from unknown (HELO mandex01.corp.mphasis.com) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Mar 2004 12:28:56 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Problem testing with Cactus Date: Tue, 2 Mar 2004 17:59:11 +0530 Message-ID: <vali@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem testing with Cactus Thread-Index: AcQAUfeN9xwWhXDJSu6fwyKkTQ/knw== From: "Praveen Menon" <vali@example.com> To: "Cactus Users List" <vali@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi there, I'm testing a class using the cactus framework.. IN fact i have a connection pool class that loads at the server startup = and makes a pool of connections(basically a wrapper Connection class) = and then i store that object=20 in the Servlet Context object.=20 Next i'v written a class that picks up that connection object from that = ServletContext and gets one connection. That's all... Whn i run the servlet i get this error=20 org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property = [cactus.contextURL] What could be the reason for this ?? Please help Rgds Praveen From vali@example.com Tue Mar 2 16:05:34 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 99521 invoked from network); 2 Mar 2004 16:05:34 -0000 Received: from unknown (HELO tama5.ecl.ntt.co.jp) (83.161.120.155) by daedalus.apache.org with SMTP; 2 Mar 2004 16:05:34 -0000 Received: from vcs3.rdh.ecl.ntt.co.jp (vcs3.rdh.ecl.ntt.co.jp [83.161.120.155]) by tama5.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i22G5aYr003270 for <vali@example.com>; Wed, 3 Mar 2004 01:05:36 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i22G5ZiV014803 for <vali@example.com>; Wed, 3 Mar 2004 01:05:35 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i22G5ZTv016199 for <vali@example.com>; Wed, 3 Mar 2004 01:05:35 +0900 (JST) Received: from nttmail3.ecl.ntt.co.jp ([83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i22G5YNt016196 for <vali@example.com>; Wed, 3 Mar 2004 01:05:34 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [83.161.120.155]) by nttmail3.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i22G5YUu015416 for <vali@example.com>; Wed, 3 Mar 2004 01:05:34 +0900 (JST) Received: from mailsv01.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.12.11/dmailsv-1.1c) with ESMTP id i22G5X5L006130 for <vali@example.com>; Wed, 3 Mar 2004 01:05:33 +0900 (JST) Received: from localhost by mailsv01.y.ecl.ntt.co.jp (8.12.11/Lab-1.2a) with ESMTP id i22G5Vsh029099 for <vali@example.com>; Wed, 3 Mar 2004 01:05:32 +0900 (JST) Date: Wed, 03 Mar 2004 01:03:05 +0900 (JST) Message-Id: <vali@example.com> To: vali@example.com Subject: Re: Problem testing with Cactus From: Kazuhito SUGURI <vali@example.com> In-Reply-To: <vali@example.com> References: <vali@example.com> X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Praveen, In article <vali@example.com>, Tue, 2 Mar 2004 17:59:11 +0530, "Praveen Menon" <vali@example.com> wrote: praveen> Whn i run the servlet i get this error praveen> org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property [cactus.contextURL] I guess, you don't have cactus.properties in your client side classpath, or the property file doesn't contains the entry. See also: http://jakarta.apache.org/cactus/integration/howto_config.html Regards, ---- Kazuhito SUGURI E-mail: vali@example.com From vali@example.com Wed Mar 3 03:38:56 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 79370 invoked from network); 3 Mar 2004 03:38:56 -0000 Received: from unknown (HELO wiproecmx2.wipro.com) (83.161.120.155) by daedalus.apache.org with SMTP; 3 Mar 2004 03:38:56 -0000 Received: from ec-vwall-out2.wipro.com (ec-vwall-out2.wipro.com [83.161.120.155]) by wiproecmx2.wipro.com (8.12.9-20031013/8.12.9) with ESMTP id i233d0lU003584 for <vali@example.com>; Wed, 3 Mar 2004 09:09:00 +0530 (IST) Received: from blr-ec-msg03.wipro.com ([83.161.120.155]) by blr-ec-bh2.wipro.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 3 Mar 2004 09:09:00 +0530 x-mimeole: Produced By Microsoft Exchange V6.0.6487.1 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Problem testing with Cactus Date: Wed, 3 Mar 2004 09:08:59 +0530 Message-ID: <vali@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problem testing with Cactus Thread-Index: AcQAUfeN9xwWhXDJSu6fwyKkTQ/knwAftBzw From: <vali@example.com> To: <vali@example.com> X-OriginalArrivalTime: 03 Mar 2004 03:39:00.0131 (UTC) FILETIME=[10AF5F30:01C400D1] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Have you put the ContextUrl in cactus.properties? If yes then have you put this file in the server classpath? You can refer the cactus doc for the details. Its there on the cactus site. Cheers, Nishit -----Original Message----- From: Praveen Menon [mailto:vali@example.com]=0D Sent: Tuesday, March 02, 2004 5:59 PM To: Cactus Users List Subject: Problem testing with Cactus Hi there, I'm testing a class using the cactus framework.. IN fact i have a connection pool class that loads at the server startup and makes a pool of connections(basically a wrapper Connection class) and then i store that object=0D in the Servlet Context object.=0D Next i'v written a class that picks up that connection object from that ServletContext and gets one connection. That's all... Whn i run the servlet i get this error=0D org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property [cactus.contextURL] What could be the reason for this ?? Please help Rgds Praveen --------------------------------------------------------------------- To unsubscribe, e-mail: vali@example.com For additional commands, e-mail: vali@example.com Confidentiality Notice=0D The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and may contain confidential or= privileged information. If you are not the intended recipient, please notify the sender at Wipro or= vali@example.com immediately and destroy all copies of this message and any attachments. From vali@example.com Thu Mar 4 07:25:09 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 69214 invoked from network); 4 Mar 2004 07:25:09 -0000 Received: from unknown (HELO webmail-outgoing.us4.outblaze.com) (83.161.120.155) by daedalus.apache.org with SMTP; 4 Mar 2004 07:25:09 -0000 Received: from spf9.us4.outblaze.com (spf9.us4.outblaze.com [83.161.120.155]) by webmail-outgoing.us4.outblaze.com (Postfix) with QMQP id ECA991800B66 for <vali@example.com>; Thu, 4 Mar 2004 07:25:20 +0000 (GMT) X-OB-Received: from unknown (83.161.120.155) by wfilter.us4.outblaze.com; 4 Mar 2004 07:02:21 -0000 Received: by ws5-2.us4.outblaze.com (Postfix, from userid 1001) id 886B34160BD; Thu, 4 Mar 2004 07:02:26 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-Mailer: MIME-tools 5.41 (Entity 5.404) Received: from [83.161.120.155] by ws5-2.us4.outblaze.com with http for vali@example.com; Thu, 04 Mar 2004 15:02:26 +0800 From: "Dinesh N" <vali@example.com> To: vali@example.com Date: Thu, 04 Mar 2004 15:02:26 +0800 Subject: Is there any way To Test aruments of function ? X-Originating-Ip: 83.161.120.155 X-Originating-Server: ws5-2.us4.outblaze.com Message-Id: <vali@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, If i have a function, pubilc string testFun1(String s1,String s2) { return testFun1(s1,s2,false); } public String testFun1(String s1,String s2, Boolean test) { calling some other fn which return String. } Now is there any way to Test which fn get called if arguments passed are two or three? Thanking You, Ragards, Dinesh N. -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze From vali@example.com Thu Mar 4 08:44:30 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 88413 invoked from network); 4 Mar 2004 08:44:30 -0000 Received: from unknown (HELO tama5.ecl.ntt.co.jp) (83.161.120.155) by daedalus.apache.org with SMTP; 4 Mar 2004 08:44:30 -0000 Received: from vcs3.rdh.ecl.ntt.co.jp (vcs3.rdh.ecl.ntt.co.jp [83.161.120.155]) by tama5.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i248ibCP008520 for <vali@example.com>; Thu, 4 Mar 2004 17:44:37 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i248ibTI017811 for <vali@example.com>; Thu, 4 Mar 2004 17:44:37 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i248ia8r011740 for <vali@example.com>; Thu, 4 Mar 2004 17:44:36 +0900 (JST) Received: from nttmail3.ecl.ntt.co.jp ([83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i248iaJ6011737 for <vali@example.com>; Thu, 4 Mar 2004 17:44:36 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [83.161.120.155]) by nttmail3.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i248iZBW003726 for <vali@example.com>; Thu, 4 Mar 2004 17:44:36 +0900 (JST) Received: from mailsv01.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.12.11/dmailsv-1.1c) with ESMTP id i248iYEp018012 for <vali@example.com>; Thu, 4 Mar 2004 17:44:34 +0900 (JST) Received: from localhost by mailsv01.y.ecl.ntt.co.jp (8.12.11/Lab-1.2a) with ESMTP id i248iYf7014217 for <vali@example.com>; Thu, 4 Mar 2004 17:44:34 +0900 (JST) Date: Thu, 04 Mar 2004 17:47:05 +0900 (JST) Message-Id: <vali@example.com> To: vali@example.com Subject: Re: Is there any way To Test aruments of function ? From: Kazuhito SUGURI <vali@example.com> In-Reply-To: <vali@example.com> References: <vali@example.com> X-Mailer: Mew version 3.3 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Dinesh, In article <vali@example.com>, Thu, 04 Mar 2004 15:02:26 +0800, "Dinesh N" <vali@example.com> wrote: gnavsupe> Now is there any way to Test which fn get called if arguments passed are two or three? I cannot see any relation with Cacus.... If you want to test that, mock-object may helps you. Regards, ---- Kazuhito SUGURI mailto:vali@example.com From vali@example.com Thu Mar 4 16:37:15 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 43569 invoked from network); 4 Mar 2004 16:37:15 -0000 Received: from unknown (HELO fep04-mail.bloor.is.net.cable.rogers.com) (83.161.120.155) by daedalus.apache.org with SMTP; 4 Mar 2004 16:37:15 -0000 Received: from rogers.com ([83.161.120.155]) by fep04-mail.bloor.is.net.cable.rogers.com (InterMail vM.83.161.120.155 201-253-122-126-112-20020820) with ESMTP id <vali@example.com> for <vali@example.com>; Thu, 4 Mar 2004 11:36:53 -0500 Message-ID: <vali@example.com> Date: Thu, 04 Mar 2004 11:36:05 -0500 From: "J. B. Rainsberger" <vali@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cactus Users List <vali@example.com> Subject: Re: Is there any way To Test aruments of function ? References: <vali@example.com> In-Reply-To: <vali@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH vali@example.com from [83.161.120.155] using ID <vali@example.com> at Thu, 4 Mar 2004 11:36:53 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Dinesh N wrote: > Hi, > If i have a function, > > pubilc string testFun1(String s1,String s2) > { > return testFun1(s1,s2,false); > } > > public String testFun1(String s1,String s2, Boolean test) > { > calling some other fn which return String. > } > > > Now is there any way to Test which fn get called if arguments passed are two or three? Why are you testing the compiler? -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 680.875.6107 Let's write software that people understand From vali@example.com Thu Mar 4 17:10:39 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 71928 invoked from network); 4 Mar 2004 17:10:39 -0000 Received: from unknown (HELO rwcrmhc12.comcast.net) (83.161.120.155) by daedalus.apache.org with SMTP; 4 Mar 2004 17:10:39 -0000 Received: from iveyb2 (sc030ws155.chs.spawar.navy.mil[83.161.120.155]) by comcast.net (rwcrmhc12) with SMTP id <20040304171040014007b7lne> (Authid: cbivey); Thu, 4 Mar 2004 17:10:40 +0000 From: "Brian Ivey" <vali@example.com> To: "Cactus Users - List" <vali@example.com> Subject: Cactus configuration question Date: Thu, 4 Mar 2004 12:09:01 -0500 Message-ID: <vali@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Dear List, I'm working on a large web application that already has a stable (and complex) build system using Ant. All of the Cactus examples I've seen build and deploy the web application in conjunction with the test classes. Is it possible for me to compile and deploy my test classes independently of my web application? In other words, is there a constraint requiring the test classes to be part of the web application deployment? If it matters, we are using Weblogic 8.1. Thanks, Brian Ivey From vali@example.com Thu Mar 4 17:28:03 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 35787 invoked from network); 4 Mar 2004 17:28:03 -0000 Received: from unknown (HELO tama5.ecl.ntt.co.jp) (83.161.120.155) by daedalus.apache.org with SMTP; 4 Mar 2004 17:28:03 -0000 Received: from vcs3.rdh.ecl.ntt.co.jp (vcs3.rdh.ecl.ntt.co.jp [83.161.120.155]) by tama5.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i24HS6U9004837 for <vali@example.com>; Fri, 5 Mar 2004 02:28:06 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i24HS5si007491 for <vali@example.com>; Fri, 5 Mar 2004 02:28:05 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i24HS5J5006251 for <vali@example.com>; Fri, 5 Mar 2004 02:28:05 +0900 (JST) Received: from nttmail3.ecl.ntt.co.jp ([83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i24HS41b006248 for <vali@example.com>; Fri, 5 Mar 2004 02:28:04 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [83.161.120.155]) by nttmail3.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i24HS40m013480 for <vali@example.com>; Fri, 5 Mar 2004 02:28:04 +0900 (JST) Received: from mailsv01.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.12.11/dmailsv-1.1c) with ESMTP id i24HS38k021372 for <vali@example.com>; Fri, 5 Mar 2004 02:28:03 +0900 (JST) Received: from localhost by mailsv01.y.ecl.ntt.co.jp (8.12.11/Lab-1.2a) with ESMTP id i24HS1B2015444 for <vali@example.com>; Fri, 5 Mar 2004 02:28:02 +0900 (JST) Date: Fri, 05 Mar 2004 02:25:33 +0900 (JST) Message-Id: <vali@example.com> To: vali@example.com Subject: Re: Is there any way To Test aruments of function ? From: Kazuhito SUGURI <vali@example.com> In-Reply-To: <vali@example.com> References: <vali@example.com> <vali@example.com> X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, In article <vali@example.com>, Thu, 04 Mar 2004 11:36:05 -0500, "J. B. Rainsberger" <vali@example.com> wrote: jbrains> Why are you testing the compiler? Dinesh may be wanting to check the expected methods are called with expected sequence while his/her process, or wanting to trace a method call chain. Of cource, I may misunderstanding :-) ---- Kazuhito SUGURI From vali@example.com Thu Mar 4 18:58:09 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 79496 invoked from network); 4 Mar 2004 18:58:09 -0000 Received: from unknown (HELO fep03-mail.bloor.is.net.cable.rogers.com) (83.161.120.155) by daedalus.apache.org with SMTP; 4 Mar 2004 18:58:09 -0000 Received: from rogers.com ([83.161.120.155]) by fep03-mail.bloor.is.net.cable.rogers.com (InterMail vM.83.161.120.155 201-253-122-126-112-20020820) with ESMTP id <20040304185813.vali@example.com> for <vali@example.com>; Thu, 4 Mar 2004 13:58:13 -0500 Message-ID: <vali@example.com> Date: Thu, 04 Mar 2004 13:57:02 -0500 From: "J. B. Rainsberger" <vali@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cactus Users List <vali@example.com> Subject: Re: Is there any way To Test aruments of function ? References: <vali@example.com> <vali@example.com> <vali@example.com> In-Reply-To: <vali@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH vali@example.com from [83.161.120.155] using ID <vali@example.com> at Thu, 4 Mar 2004 13:58:13 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Kazuhito SUGURI wrote: > Hi, > > In article <vali@example.com>, > Thu, 04 Mar 2004 11:36:05 -0500, > "J. B. Rainsberger" <vali@example.com> wrote: > jbrains> Why are you testing the compiler? > > Dinesh may be wanting to check the expected methods are > called with expected sequence while his/her process, > or wanting to trace a method call chain. > > Of cource, I may misunderstanding :-) OK. There are two methods: f(int a, int b, int c) { // something complex } f(int a, int b) { f(a, b, 0); } Test f(a,b,c), making sure to test the case c=0 in particular. f(a,b) is Too Simple to Break. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 680.875.6107 Let's write software that people understand From vali@example.com Fri Mar 5 12:37:40 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 65778 invoked from network); 5 Mar 2004 12:37:40 -0000 Received: from unknown (HELO tama5.ecl.ntt.co.jp) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 12:37:40 -0000 Received: from vcs3.rdh.ecl.ntt.co.jp (vcs3.rdh.ecl.ntt.co.jp [83.161.120.155]) by tama5.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i25Cba1j015135 for <vali@example.com>; Fri, 5 Mar 2004 21:37:36 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i25CbZr2015576 for <vali@example.com>; Fri, 5 Mar 2004 21:37:35 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i25CbZqq012331 for <vali@example.com>; Fri, 5 Mar 2004 21:37:35 +0900 (JST) Received: from nttmail3.ecl.ntt.co.jp ([83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i25CbY7J012327 for <vali@example.com>; Fri, 5 Mar 2004 21:37:34 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [83.161.120.155]) by nttmail3.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i25CbYEt005416 for <vali@example.com>; Fri, 5 Mar 2004 21:37:34 +0900 (JST) Received: from mailsv01.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.12.11/dmailsv-1.1c) with ESMTP id i25CbXc0015919 for <vali@example.com>; Fri, 5 Mar 2004 21:37:33 +0900 (JST) Received: from localhost by mailsv01.y.ecl.ntt.co.jp (8.12.11/Lab-1.2a) with ESMTP id i25CbXYN005039 for <vali@example.com>; Fri, 5 Mar 2004 21:37:33 +0900 (JST) Date: Fri, 05 Mar 2004 21:40:05 +0900 (JST) Message-Id: <vali@example.com> To: vali@example.com Subject: Re: Cactus configuration question From: Kazuhito SUGURI <vali@example.com> In-Reply-To: <vali@example.com> References: <vali@example.com> X-Mailer: Mew version 3.3 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Brian, In article <vali@example.com>, Thu, 4 Mar 2004 12:09:01 -0500, "Brian Ivey" <vali@example.com> wrote: cbivey> I'm working on a large web application that already has a stable (and cbivey> complex) build system using Ant. All of the Cactus examples I've seen build cbivey> and deploy the web application in conjunction with the test classes. Is it cbivey> possible for me to compile and deploy my test classes independently of my cbivey> web application? In other words, is there a constraint requiring the test cbivey> classes to be part of the web application deployment? If it matters, we are cbivey> using Weblogic 8.1. A constraint: classes under test and cactus test classes are in classpath of Container JVM See also http://jakarta.apache.org/cactus/integration/howto_classpath.html For your information, I can test my classes on JBoss-3.2.3 with following settings (but this is not my usual one): archives: app.ear --+-- app.war (application war) +-- app-cactus.war (contains only cactus test classes, | jars and web.xml for Cactus) +-- META_INF/application.xml application.xml: <application> <display-name>My Application</display-name> <module> <web> <web-uri>app.war</web-uri> <context-root>/myapp</context-root> </web> </module> <module> <web> <web-uri>app-cactus.war</web-uri> <context-root>/myapp/cactus</context-root> </web> </module> </application> cactus.properties (client side): cactus.contextURL = http://localhost:8080/myapp/cactus I'm not sure if this approach works for WebLogic. I hope this helps. ---- Kazuhito SUGURI mailto:vali@example.com From vali@example.com Fri Mar 5 19:26:55 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 66211 invoked from network); 5 Mar 2004 19:26:55 -0000 Received: from unknown (HELO mhs99ykf.rim.net) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 19:26:55 -0000 Received: from ngw04ykf.rim.net (ngw04ykf.rim.net [83.161.120.155]) by mhs99ykf.rim.net (Postfix) with SMTP id 63AC6B5BC9 for <vali@example.com>; Fri, 5 Mar 2004 14:26:58 -0500 (EST) Received: from XCH21YKF.rim.net ([83.161.120.155]) by ngw04ykf.rim.net (NAVGW 83.161.120.155) with SMTP id M2004030514265811056 for <vali@example.com>; Fri, 05 Mar 2004 14:26:58 -0500 Received: from XCL01YKF.rim.net ([83.161.120.155]) by XCH21YKF.rim.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 5 Mar 2004 14:26:58 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Subject: problem with Weblogic 8.1 Date: Fri, 5 Mar 2004 14:26:57 -0500 Message-ID: <vali@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with Weblogic 8.1 Thread-Index: AcQC59LrQAOSugoLRPuJuBLwUpP7Zw== From: "Ron Roth" <vali@example.com> To: <vali@example.com> X-OriginalArrivalTime: 05 Mar 2004 19:26:58.0366 (UTC) FILETIME=[D394C5E0:01C402E7] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, I'm trying to set up a cactus framework with Weblogic 8.1 and I'm = running into an AssertionFailedException that I can't figure out. Any = help would be appreciated.=20 Here's my test case code: public class NetworkAddressCactus extends TestCase { public NetworkAddressCactus(String name) { } public static Test suite() { ServletTestSuite suite =3D new ServletTestSuite(); suite.addTestSuite(NetworkAddressCactus.class); return suite; } public static void testNothing() { System.out.println("testNothing begin"); } public static void testAlwaysSucceed() { System.out.println("testAlwaysSucceed begin"); assertEquals(1,1); } public static void testAlwaysFail() { System.out.println("testAlwaysFail begin"); assertEquals("a", "b"); } } Here's the exception I get in the test runner: C:\junit3.8.1>java junit.textui.TestRunner = provision.control.web.validation.NetworkAddressCactus=20 .F.F.F Time: 0.681 There were 3 failures: 1) = testNothing(org.apache.cactus.ServletTestCase)junit.framework.AssertionFa= iledError at = org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291)= at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at = org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCall= er.java:156) at = org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBo= dy0(AbstractWebTestController.java:130) at = org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBo= dy1$advice(AbstractWebTestController.java:158) at = org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstract= WebTestController.java) at = org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servlet= TestRedirector.java:138) at = org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(= ServletTestRedirector.java:158) at = org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirect= or.java) at = org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletT= estRedirector.java:109) at = org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(S= ervletTestRedirector.java:158) at = org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirecto= r.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at = weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Ser= vletStubImpl.java:1053) at = weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.j= ava:387) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at = weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:2= 7) at = weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.ru= n(WebAppServletContext.java:6316) at = weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSub= ject.java:317) at = weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)= at = weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServle= tContext.java:3622) at = weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.j= ava:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) 2) = testAlwaysSucceed(org.apache.cactus.ServletTestCase)junit.framework.Asser= tionFailedError at = org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291)= at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at = org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCall= er.java:156) at = org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBo= dy0(AbstractWebTestController.java:130) at = org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBo= dy1$advice(AbstractWebTestController.java:158) at = org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstract= WebTestController.java) at = org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servlet= TestRedirector.java:138) at = org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(= ServletTestRedirector.java:158) at = org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirect= or.java) at = org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletT= estRedirector.java:109) at = org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(S= ervletTestRedirector.java:158) at = org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirecto= r.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at = weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Ser= vletStubImpl.java:1053) at = weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.j= ava:387) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at = weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:2= 7) at = weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.ru= n(WebAppServletContext.java:6316) at = weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSub= ject.java:317) at = weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)= at = weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServle= tContext.java:3622) at = weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.j= ava:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) 3) = testAlwaysFail(org.apache.cactus.ServletTestCase)junit.framework.Assertio= nFailedError at = org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291)= at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at = org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCall= er.java:156) at = org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBo= dy0(AbstractWebTestController.java:130) at = org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundBo= dy1$advice(AbstractWebTestController.java:158) at = org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstract= WebTestController.java) at = org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servlet= TestRedirector.java:138) at = org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice(= ServletTestRedirector.java:158) at = org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirect= or.java) at = org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(ServletT= estRedirector.java:109) at = org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice(S= ervletTestRedirector.java:158) at = org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirecto= r.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at = weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Ser= vletStubImpl.java:1053) at = weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.j= ava:387) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) at = weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:2= 7) at = weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.ru= n(WebAppServletContext.java:6316) at = weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSub= ject.java:317) at = weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)= at = weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServle= tContext.java:3622) at = weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.j= ava:2569) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) FAILURES!!! Tests run: 3, Failures: 3, Errors: 0 Please help! Thanks, Ron Roth From vali@example.com Fri Mar 5 19:44:15 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 98931 invoked from network); 5 Mar 2004 19:44:15 -0000 Received: from unknown (HELO smtp.noos.fr) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 19:44:15 -0000 Received: (qmail 5534 invoked by uid 0); 5 Mar 2004 19:44:15 -0000 Received: from unknown (HELO vma) ([83.161.120.155]) (envelope-sender <vali@example.com>) by 83.161.120.155 (qmail-ldap-1.03) with SMTP for <vali@example.com>; 5 Mar 2004 19:44:15 -0000 From: "Vincent Massol" <vali@example.com> To: "'Cactus Users List'" <vali@example.com> Subject: RE: problem with Weblogic 8.1 Date: Fri, 5 Mar 2004 20:43:40 +0100 Message-ID: <007001c402ea$2bd070e0$2502a8c0@vma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <vali@example.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Ron, Try removing the "static" keyword from the testXXX methods. Thanks -Vincent > -----Original Message----- > From: Ron Roth [mailto:vali@example.com] > Sent: 05 March 2004 20:27 > To: vali@example.com > Subject: problem with Weblogic 8.1 > > Hello, > I'm trying to set up a cactus framework with Weblogic 8.1 and I'm running > into an AssertionFailedException that I can't figure out. Any help would > be appreciated. > > Here's my test case code: > > public class NetworkAddressCactus extends TestCase > { > public NetworkAddressCactus(String name) > { > } > > public static Test suite() > { > ServletTestSuite suite = new ServletTestSuite(); > suite.addTestSuite(NetworkAddressCactus.class); > return suite; > } > > public static void testNothing() > { > System.out.println("testNothing begin"); > } > > public static void testAlwaysSucceed() > { > System.out.println("testAlwaysSucceed begin"); > assertEquals(1,1); > } > > public static void testAlwaysFail() > { > System.out.println("testAlwaysFail begin"); > assertEquals("a", "b"); > } > } > > Here's the exception I get in the test runner: > > C:\junit3.8.1>java junit.textui.TestRunner > provision.control.web.validation.NetworkAddressCactus > .F.F.F > Time: 0.681 > There were 3 failures: > 1) > testNothing(org.apache.cactus.ServletTestCase)junit.framework.AssertionF ai > ledError > at > org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291 ) > at > org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) > at > org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal le > r.java:156) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y0(AbstractWebTestController.java:130) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y1$advice(AbstractWebTestController.java:158) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac tW > ebTestController.java) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle tT > estRedirector.java:138) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice (S > ervletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet Te > stRedirector.java:109) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice( Se > rvletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect or > .java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se rv > letStubImpl.java:1053) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. ja > va:387) > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: 27 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un > (WebAppServletContext.java:6316) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bj > ect.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118 ) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl et > Context.java:3622) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. ja > va:2569) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > 2) > testAlwaysSucceed(org.apache.cactus.ServletTestCase)junit.framework.Asse rt > ionFailedError > at > org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291 ) > at > org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) > at > org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal le > r.java:156) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y0(AbstractWebTestController.java:130) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y1$advice(AbstractWebTestController.java:158) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac tW > ebTestController.java) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle tT > estRedirector.java:138) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice (S > ervletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet Te > stRedirector.java:109) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice( Se > rvletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect or > .java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se rv > letStubImpl.java:1053) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. ja > va:387) > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: 27 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un > (WebAppServletContext.java:6316) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bj > ect.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118 ) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl et > Context.java:3622) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. ja > va:2569) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > 3) > testAlwaysFail(org.apache.cactus.ServletTestCase)junit.framework.Asserti on > FailedError > at > org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291 ) > at > org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) > at > org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal le > r.java:156) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y0(AbstractWebTestController.java:130) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y1$advice(AbstractWebTestController.java:158) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac tW > ebTestController.java) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle tT > estRedirector.java:138) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice (S > ervletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet Te > stRedirector.java:109) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice( Se > rvletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect or > .java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se rv > letStubImpl.java:1053) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. ja > va:387) > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: 27 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un > (WebAppServletContext.java:6316) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bj > ect.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118 ) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl et > Context.java:3622) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. ja > va:2569) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > > FAILURES!!! > Tests run: 3, Failures: 3, Errors: 0 > > Please help! > > Thanks, > Ron Roth > > --------------------------------------------------------------------- > To unsubscribe, e-mail: vali@example.com > For additional commands, e-mail: vali@example.com From vali@example.com Fri Mar 5 20:19:12 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 68145 invoked from network); 5 Mar 2004 20:19:12 -0000 Received: from unknown (HELO mhs99ykf.rim.net) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 20:19:12 -0000 Received: from ngw04ykf.rim.net (ngw04ykf.rim.net [83.161.120.155]) by mhs99ykf.rim.net (Postfix) with SMTP id B4BCCBA674 for <vali@example.com>; Fri, 5 Mar 2004 15:19:16 -0500 (EST) Received: from XCH21YKF.rim.net ([83.161.120.155]) by ngw04ykf.rim.net (NAVGW 83.161.120.155) with SMTP id M2004030515191631630 for <vali@example.com>; Fri, 05 Mar 2004 15:19:16 -0500 Received: from XCL01YKF.rim.net ([83.161.120.155]) by XCH21YKF.rim.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 5 Mar 2004 15:19:16 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Subject: RE: problem with Weblogic 8.1 Date: Fri, 5 Mar 2004 15:19:16 -0500 Message-ID: <vali@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with Weblogic 8.1 Thread-Index: AcQC6kpK2Pmn48TWRomqmsza/F6gWAABM1sA From: "Ron Roth" <vali@example.com> To: "Cactus Users List" <vali@example.com> X-OriginalArrivalTime: 05 Mar 2004 20:19:16.0701 (UTC) FILETIME=[222CB0D0:01C402EF] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I gave that a try, but I'm afraid I get the same exception.=20 Ron -----Original Message----- From: Vincent Massol [mailto:vali@example.com] Sent: March 5, 2004 2:44 PM To: 'Cactus Users List' Subject: RE: problem with Weblogic 8.1 Hi Ron, Try removing the "static" keyword from the testXXX methods. Thanks -Vincent > -----Original Message----- > From: Ron Roth [mailto:vali@example.com] > Sent: 05 March 2004 20:27 > To: vali@example.com > Subject: problem with Weblogic 8.1 >=20 > Hello, > I'm trying to set up a cactus framework with Weblogic 8.1 and I'm running > into an AssertionFailedException that I can't figure out. Any help would > be appreciated. >=20 > Here's my test case code: >=20 > public class NetworkAddressCactus extends TestCase > { > public NetworkAddressCactus(String name) > { > } >=20 > public static Test suite() > { > ServletTestSuite suite =3D new ServletTestSuite(); > suite.addTestSuite(NetworkAddressCactus.class); > return suite; > } >=20 > public static void testNothing() > { > System.out.println("testNothing begin"); > } >=20 > public static void testAlwaysSucceed() > { > System.out.println("testAlwaysSucceed begin"); > assertEquals(1,1); > } >=20 > public static void testAlwaysFail() > { > System.out.println("testAlwaysFail begin"); > assertEquals("a", "b"); > } > } >=20 > Here's the exception I get in the test runner: >=20 > C:\junit3.8.1>java junit.textui.TestRunner > provision.control.web.validation.NetworkAddressCactus > .F.F.F > Time: 0.681 > There were 3 failures: > 1) > testNothing(org.apache.cactus.ServletTestCase)junit.framework.AssertionF ai > ledError > at > org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291 ) > at > org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) > at > org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal le > r.java:156) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y0(AbstractWebTestController.java:130) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y1$advice(AbstractWebTestController.java:158) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac tW > ebTestController.java) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle tT > estRedirector.java:138) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice (S > ervletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet Te > stRedirector.java:109) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice( Se > rvletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect or > .java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se rv > letStubImpl.java:1053) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. ja > va:387) > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: 27 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un > (WebAppServletContext.java:6316) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bj > ect.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118 ) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl et > Context.java:3622) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. ja > va:2569) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > 2) > testAlwaysSucceed(org.apache.cactus.ServletTestCase)junit.framework.Asse rt > ionFailedError > at > org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291 ) > at > org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) > at > org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal le > r.java:156) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y0(AbstractWebTestController.java:130) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y1$advice(AbstractWebTestController.java:158) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac tW > ebTestController.java) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle tT > estRedirector.java:138) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice (S > ervletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet Te > stRedirector.java:109) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice( Se > rvletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect or > .java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se rv > letStubImpl.java:1053) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. ja > va:387) > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: 27 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un > (WebAppServletContext.java:6316) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bj > ect.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118 ) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl et > Context.java:3622) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. ja > va:2569) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) > 3) > testAlwaysFail(org.apache.cactus.ServletTestCase)junit.framework.Asserti on > FailedError > at > org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:291 ) > at > org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) > at > org.apache.cactus.server.AbstractWebTestCaller.doTest(AbstractWebTestCal le > r.java:156) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y0(AbstractWebTestController.java:130) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest_aroundB od > y1$advice(AbstractWebTestController.java:158) > at > org.apache.cactus.server.AbstractWebTestController.handleRequest(Abstrac tW > ebTestController.java) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody2(Servle tT > estRedirector.java:138) > at > org.apache.cactus.server.ServletTestRedirector.doPost_aroundBody3$advice (S > ervletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doPost(ServletTestRedirec to > r.java) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody0(Servlet Te > stRedirector.java:109) > at > org.apache.cactus.server.ServletTestRedirector.doGet_aroundBody1$advice( Se > rvletTestRedirector.java:158) > at > org.apache.cactus.server.ServletTestRedirector.doGet(ServletTestRedirect or > .java) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se rv > letStubImpl.java:1053) > at > weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl. ja > va:387) > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28) > at > weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java: 27 > ) > at > weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r un > (WebAppServletContext.java:6316) > at > weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu bj > ect.java:317) > at > weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118 ) > at > weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl et > Context.java:3622) > at > weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl. ja > va:2569) > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197) > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170) >=20 > FAILURES!!! > Tests run: 3, Failures: 3, Errors: 0 >=20 > Please help! >=20 > Thanks, > Ron Roth >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: vali@example.com > For additional commands, e-mail: vali@example.com --------------------------------------------------------------------- To unsubscribe, e-mail: vali@example.com For additional commands, e-mail: vali@example.com From vali@example.com Fri Mar 5 21:13:33 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 56705 invoked from network); 5 Mar 2004 21:13:33 -0000 Received: from unknown (HELO fep02-mail.bloor.is.net.cable.rogers.com) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 21:13:33 -0000 Received: from rogers.com ([83.161.120.155]) by fep02-mail.bloor.is.net.cable.rogers.com (InterMail vM.83.161.120.155 201-253-122-126-112-20020820) with ESMTP id <20040305211300.vali@example.com> for <vali@example.com>; Fri, 5 Mar 2004 16:13:00 -0500 Message-ID: <vali@example.com> Date: Fri, 05 Mar 2004 16:12:21 -0500 From: "J. B. Rainsberger" <vali@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cactus Users List <vali@example.com> Subject: Re: problem with Weblogic 8.1 References: <vali@example.com> In-Reply-To: <vali@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH vali@example.com from [83.161.120.155] using ID <vali@example.com> at Fri, 5 Mar 2004 16:13:00 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ron Roth wrote: > Hello, > I'm trying to set up a cactus framework with Weblogic 8.1 and I'm running into an AssertionFailedException that I can't figure out. Any help would be appreciated. > > Here's my test case code: > > public class NetworkAddressCactus extends TestCase > { > public NetworkAddressCactus(String name) > { > } This constructor can't be right. Either use the default constructor or invoke super(name) in the one you've implemented. Without a test name, JUnit doesn't get very far. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 680.875.6107 Let's write software that people understand From vali@example.com Fri Mar 5 21:49:59 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 6024 invoked from network); 5 Mar 2004 21:49:59 -0000 Received: from unknown (HELO mhs99ykf.rim.net) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 21:49:59 -0000 Received: from ngw04ykf.rim.net (ngw04ykf.rim.net [83.161.120.155]) by mhs99ykf.rim.net (Postfix) with SMTP id 57C74B6F2B for <vali@example.com>; Fri, 5 Mar 2004 16:50:03 -0500 (EST) Received: from XCH21YKF.rim.net ([83.161.120.155]) by ngw04ykf.rim.net (NAVGW 83.161.120.155) with SMTP id M2004030516500214429 for <vali@example.com>; Fri, 05 Mar 2004 16:50:02 -0500 Received: from XCL01YKF.rim.net ([83.161.120.155]) by XCH21YKF.rim.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 5 Mar 2004 16:50:03 -0500 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Subject: RE: problem with Weblogic 8.1 Date: Fri, 5 Mar 2004 16:50:03 -0500 Message-ID: <vali@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: problem with Weblogic 8.1 Thread-Index: AcQC9sakm8XHinibRe+g/9Bb16mooAABP+6w From: "Ron Roth" <vali@example.com> To: "Cactus Users List" <vali@example.com> X-OriginalArrivalTime: 05 Mar 2004 21:50:03.0225 (UTC) FILETIME=[D08E4C90:01C402FB] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N That did the trick. Thanks very much to both of you.=20 Ron -----Original Message----- From: J. B. Rainsberger [mailto:vali@example.com] Sent: March 5, 2004 4:12 PM To: Cactus Users List Subject: Re: problem with Weblogic 8.1 Ron Roth wrote: > Hello, > I'm trying to set up a cactus framework with Weblogic 8.1 and I'm = running into an AssertionFailedException that I can't figure out. Any = help would be appreciated.=20 >=20 > Here's my test case code: >=20 > public class NetworkAddressCactus extends TestCase > { > public NetworkAddressCactus(String name) > { > } This constructor can't be right. Either use the default constructor or invoke super(name) in the one=20 you've implemented. Without a test name, JUnit doesn't get very far. --=20 J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 680.875.6107 Let's write software that people understand --------------------------------------------------------------------- To unsubscribe, e-mail: vali@example.com For additional commands, e-mail: vali@example.com From vali@example.com Fri Mar 5 22:51:33 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 95374 invoked from network); 5 Mar 2004 22:51:33 -0000 Received: from unknown (HELO fep04-mail.bloor.is.net.cable.rogers.com) (83.161.120.155) by daedalus.apache.org with SMTP; 5 Mar 2004 22:51:33 -0000 Received: from rogers.com ([83.161.120.155]) by fep04-mail.bloor.is.net.cable.rogers.com (InterMail vM.83.161.120.155 201-253-122-126-112-20020820) with ESMTP id <vali@example.com> for <vali@example.com>; Fri, 5 Mar 2004 17:51:14 -0500 Message-ID: <vali@example.com> Date: Fri, 05 Mar 2004 17:50:19 -0500 From: "J. B. Rainsberger" <vali@example.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cactus Users List <vali@example.com> Subject: Cactus/test name is null References: <vali@example.com> In-Reply-To: <vali@example.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH vali@example.com from [83.161.120.155] using ID <vali@example.com> at Fri, 5 Mar 2004 17:51:14 -0500 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Ron Roth wrote: > That did the trick. Thanks very much to both of you. It points out a potential defect in Cactus, though. When the test name is null, JUnit usually pukes; but in this case, it looks like a test failure. Vince... maybe it's worth changing Cactus so that it blows up the same way that JUnit does when the test name is null. -- J. B. Rainsberger, Diaspar Software Services http://www.diasparsoftware.com 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 680.875.6107 Let's write software that people understand From vali@example.com Sat Mar 6 07:40:50 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 35612 invoked from network); 6 Mar 2004 07:40:50 -0000 Received: from unknown (HELO smtp.noos.fr) (83.161.120.155) by daedalus.apache.org with SMTP; 6 Mar 2004 07:40:50 -0000 Received: (qmail 32483 invoked by uid 0); 6 Mar 2004 07:41:00 -0000 Received: from unknown (HELO vma) ([83.161.120.155]) (envelope-sender <vali@example.com>) by 83.161.120.155 (qmail-ldap-1.03) with SMTP for <vali@example.com>; 6 Mar 2004 07:41:00 -0000 From: "Vincent Massol" <vali@example.com> To: "'Cactus Users List'" <vali@example.com> Subject: RE: Cactus/test name is null Date: Sat, 6 Mar 2004 08:40:25 +0100 Message-ID: <016f01c4034e$49ce5d50$2502a8c0@vma> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <vali@example.com> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Yep, I had the same thought. Also cactus could check for the static keyword in testXXX. Just need to find some time. If anyone wants to submit a patch... Thanks -Vincent > -----Original Message----- > From: J. B. Rainsberger [mailto:vali@example.com] > Sent: 05 March 2004 23:50 > To: Cactus Users List > Subject: Cactus/test name is null > > Ron Roth wrote: > > > That did the trick. Thanks very much to both of you. > > It points out a potential defect in Cactus, though. When the test name > is null, JUnit usually pukes; but in this case, it looks like a test > failure. Vince... maybe it's worth changing Cactus so that it blows up > the same way that JUnit does when the test name is null. > -- > J. B. Rainsberger, > Diaspar Software Services > http://www.diasparsoftware.com 888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4 680.875.6107 > Let's write software that people understand > > --------------------------------------------------------------------- > To unsubscribe, e-mail: vali@example.com > For additional commands, e-mail: vali@example.com From vali@example.com Mon Mar 8 11:17:38 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 11658 invoked from network); 8 Mar 2004 11:17:38 -0000 Received: from unknown (HELO pat.uio.no) (83.161.120.155) by daedalus.apache.org with SMTP; 8 Mar 2004 11:17:38 -0000 Received: from mail-mx3.uio.no ([83.161.120.155]) by pat.uio.no with esmtp (Exim 4.20) id 1B0Ilb-0002uN-AB for vali@example.com; Mon, 08 Mar 2004 12:17:51 +0100 Received: from pk-ana-1332e.uio.no ([83.161.120.155] helo=pk-ana-1332e.ulrik.uio.no) by mail-mx3.uio.no with esmtp (Exim 4.14) id 1B0IlI-0004tQ-Jw for vali@example.com; Mon, 08 Mar 2004 12:17:32 +0100 Message-Id: <vali@example.com> X-Sender: vali@example.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 08 Mar 2004 12:17:24 +0100 To: vali@example.com From: Jan Olav Kj|de <vali@example.com> Subject: java.net.SocketException: Software caused connection abort: recv failed Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-MailScanner-Information: This message has been scanned for viruses/spam. Contact vali@example.com if you have questions about this scanning X-UiO-MailScanner: No virus found X-UiO-Spam-info: not spam, SpamAssassin (score=0, required 12) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi! I have made a simple JspTestCase (to test a tag) that doesn't work for some reason. Would be great if anyone could help.. I get a SocketException. I'm using JDeveloper with OC4J server. The test: public void testGetAnimal() throws Exception { pageContext.setAttribute("animalId", "4"); GetAnimalTag atag = new GetAnimalTag(); initTag(atag, null, "animalId" , "animal" ); startTag(atag); Object animal = pageContext.getAttribute("animal"); assertNotNull(animal); } protected void startTag(BaseTag tag) { try { tag.doStartTag(); } catch (JspException e) { e.printStackTrace(); } } This is what I get: Results: testGetAnimal(no.uio.nesys.web.taglib.get.unittests.GetAnimalTagTester): java.net.SocketException: Software caused connection abort: recv failed Log: . . . DEBUG [TestRunner-Thread] (HttpConnection.java:931) - enter HttpConnection.write(byte[]) DEBUG [TestRunner-Thread] (HttpConnection.java:953) - enter HttpConnection.write(byte[], int, int) DEBUG [TestRunner-Thread] (HttpConnection.java:777) - enter HttpConnection.flushRequestOutputStream() DEBUG [TestRunner-Thread] (HttpConnection.java:777) - enter HttpConnection.flushRequestOutputStream() DEBUG [TestRunner-Thread] (HttpMethodBase.java:1930) - enter HttpMethodBase.readResponse(HttpState, HttpConnection) DEBUG [TestRunner-Thread] (HttpMethodBase.java:2165) - enter HttpMethodBase.readStatusLine(HttpState, HttpConnection) DEBUG [TestRunner-Thread] (HttpConnection.java:1066) - enter HttpConnection.readLine() DEBUG [TestRunner-Thread] (HttpParser.java:134) - enter HttpParser.readLine() DEBUG [TestRunner-Thread] (HttpParser.java:105) - enter HttpParser.readRawLine() DEBUG [TestRunner-Thread] (HttpMethodBase.java:2637) - Closing the connection. DEBUG [TestRunner-Thread] (HttpConnection.java:1099) - enter HttpConnection.close() DEBUG [TestRunner-Thread] (HttpConnection.java:1138) - enter HttpConnection.closeSockedAndStreams() INFO [TestRunner-Thread] (HttpMethodBase.java:2640) - Recoverable exception caught when processing request WARN [TestRunner-Thread] (HttpMethodBase.java:2652) - Recoverable exception caught but MethodRetryHandler.retryMethod() returned false, rethrowing exception DEBUG [TestRunner-Thread] (HttpConnection.java:1123) - enter HttpConnection.releaseConnection() DEBUG [TestRunner-Thread] (ServletTestCase.java:269) - Exception in test org.apache.commons.httpclient.HttpRecoverableException: java.net.SocketException: Software caused connection abort: recv vali@example.com(HttpMethodBase.java:1952) at org.apache.commons.httpclient.HttpMethodBase.processRequest(HttpMethodBase.java:2631) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1085) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:674) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:558) at org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_aroundBody0(HttpClientConnectionHelper.java:177) at org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect_aroundBody1$advice(HttpClientConnectionHelper.java:222) at org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java) at org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java:201) at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody0(DefaultHttpClient.java:119) at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest_aroundBody1$advice(DefaultHttpClient.java:222) at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java) at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java:333) at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java:281) at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java:257) at org.apache.cactus.ServletTestCase.runCactusTest(ServletTestCase.java:300) at org.apache.cactus.ServletTestCase.runBare(ServletTestCase.java:263) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.swingui.TestRunner$16.run(TestRunner.java:623) Please help. Thanks, Jan Ok From vali@example.com Mon Mar 8 11:32:16 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 28788 invoked from network); 8 Mar 2004 11:32:16 -0000 Received: from unknown (HELO tama5.ecl.ntt.co.jp) (83.161.120.155) by daedalus.apache.org with SMTP; 8 Mar 2004 11:32:16 -0000 Received: from vcs3.rdh.ecl.ntt.co.jp (vcs3.rdh.ecl.ntt.co.jp [83.161.120.155]) by tama5.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i28BWEr9025366 for <vali@example.com>; Mon, 8 Mar 2004 20:32:14 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by vcs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i28BWDXu012454 for <vali@example.com>; Mon, 8 Mar 2004 20:32:13 +0900 (JST) Received: from mfs3.rdh.ecl.ntt.co.jp (localhost [83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i28BWDcd020246 for <vali@example.com>; Mon, 8 Mar 2004 20:32:13 +0900 (JST) Received: from nttmail3.ecl.ntt.co.jp ([83.161.120.155]) by mfs3.rdh.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i28BWCMR020243 for <vali@example.com>; Mon, 8 Mar 2004 20:32:12 +0900 (JST) Received: from dmailsv1.y.ecl.ntt.co.jp (dmailsv1.y.ecl.ntt.co.jp [83.161.120.155]) by nttmail3.ecl.ntt.co.jp (8.12.11/8.12.11) with ESMTP id i28BWCkc025031 for <vali@example.com>; Mon, 8 Mar 2004 20:32:12 +0900 (JST) Received: from mailsv01.y.ecl.ntt.co.jp by dmailsv1.y.ecl.ntt.co.jp (8.12.11/dmailsv-1.1c) with ESMTP id i28BWBdM022411 for <vali@example.com>; Mon, 8 Mar 2004 20:32:11 +0900 (JST) Received: from localhost by mailsv01.y.ecl.ntt.co.jp (8.12.11/Lab-1.2a) with ESMTP id i28BWBEk026042 for <vali@example.com>; Mon, 8 Mar 2004 20:32:11 +0900 (JST) Date: Mon, 08 Mar 2004 20:34:46 +0900 (JST) Message-Id: <vali@example.com> To: vali@example.com Subject: Re: java.net.SocketException: Software caused connection abort: recv failed From: Kazuhito SUGURI <vali@example.com> In-Reply-To: <vali@example.com> References: <vali@example.com> X-Mailer: Mew version 3.3 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Jan, In article <vali@example.com>, Mon, 08 Mar 2004 12:17:24 +0100, Jan Olav Kj|de <vali@example.com> wrote: j.o.kjode> I have made a simple JspTestCase (to test a tag) that doesn't work for some j.o.kjode> reason. j.o.kjode> Would be great if anyone could help.. j.o.kjode> I get a SocketException. [snip] j.o.kjode> DEBUG [TestRunner-Thread] (HttpConnection.java:931) - enter How did you run the test? I'm not sure what the TestRunner-Thread is. Regards, ---- Kazuhito SUGURI mailto:vali@example.com From vali@example.com Mon Mar 8 12:27:59 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 96848 invoked from network); 8 Mar 2004 12:27:59 -0000 Received: from unknown (HELO pat.uio.no) (83.161.120.155) by daedalus.apache.org with SMTP; 8 Mar 2004 12:27:59 -0000 Received: from mail-mx6.uio.no ([83.161.120.155]) by pat.uio.no with esmtp (Exim 4.20) id 1B0JrS-00060h-R4 for vali@example.com; Mon, 08 Mar 2004 13:27:58 +0100 Received: from pk-ana-1332e.uio.no ([83.161.120.155] helo=pk-ana-1332e.ulrik.uio.no) by mail-mx6.uio.no with esmtp (Exim 4.14) id 1B0JcB-0002qp-Ne for vali@example.com; Mon, 08 Mar 2004 13:12:11 +0100 Message-Id: <vali@example.com> X-Sender: vali@example.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 08 Mar 2004 13:12:03 +0100 To: "Cactus Users List" <vali@example.com> From: Jan Olav Kj|de <vali@example.com> Subject: Re: java.net.SocketException: Software caused connection abort: recv failed In-Reply-To: <vali@example.com> References: <vali@example.com> <vali@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-MailScanner-Information: This message has been scanned for viruses/spam. Contact vali@example.com if you have questions about this scanning X-UiO-MailScanner: No virus found X-UiO-Spam-info: not spam, SpamAssassin (score=0, required 12) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I run it like this: public GetAnimalTagTester(String theName) { super(theName); } public static void main(String[] theArgs) { new no.uio.nesys.util.Log4jInitializer().init(); junit.swingui.TestRunner.main(new String[] {GetAnimalTagTester.class.getName()}); } Do you need additional information? Jan Ok At 20:34 08.03.2004 +0900, you wrote: >Hi Jan, > >In article <vali@example.com>, >Mon, 08 Mar 2004 12:17:24 +0100, >Jan Olav Kj|de <vali@example.com> wrote: >j.o.kjode> I have made a simple JspTestCase (to test a tag) that doesn't >work for some >j.o.kjode> reason. >j.o.kjode> Would be great if anyone could help.. >j.o.kjode> I get a SocketException. >[snip] >j.o.kjode> DEBUG [TestRunner-Thread] (HttpConnection.java:931) - enter > >How did you run the test? >I'm not sure what the TestRunner-Thread is. > >Regards, >---- >Kazuhito SUGURI >mailto:vali@example.com > >--------------------------------------------------------------------- >To unsubscribe, e-mail: vali@example.com >For additional commands, e-mail: vali@example.com From vali@example.com Mon Mar 8 14:25:33 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 3178 invoked from network); 8 Mar 2004 14:25:33 -0000 Received: from unknown (HELO pat.uio.no) (83.161.120.155) by daedalus.apache.org with SMTP; 8 Mar 2004 14:25:33 -0000 Received: from mail-mx2.uio.no ([83.161.120.155]) by pat.uio.no with esmtp (Exim 4.20) id 1B0LhG-0003pd-7w for vali@example.com; Mon, 08 Mar 2004 15:25:34 +0100 Received: from pk-ana-1332e.uio.no ([83.161.120.155] helo=pk-ana-1332e.ulrik.uio.no) by mail-mx2.uio.no with esmtp (Exim 4.14) id 1B0LOw-0005qf-4L for vali@example.com; Mon, 08 Mar 2004 15:06:38 +0100 Message-Id: <vali@example.com> X-Sender: vali@example.com X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 08 Mar 2004 15:06:25 +0100 To: "Cactus Users List" <vali@example.com> From: Jan Olav Kj|de <vali@example.com> Subject: Re: java.net.SocketException: Software caused connection abort: recv failed In-Reply-To: <vali@example.com> References: <vali@example.com> <vali@example.com> <vali@example.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-MailScanner-Information: This message has been scanned for viruses/spam. Contact vali@example.com if you have questions about this scanning X-UiO-MailScanner: No virus found X-UiO-Spam-info: not spam, SpamAssassin (score=0, required 12) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello. I fixed the problem. I tried to log to standard-out as well as to a log-file (see below). When I remove this, and justs log to the log-file, everything works just fine. Why I don't know.. . . . log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n . . . # Debug logs for Cactus log4j.category.org.apache.cactus = DEBUG, cactus, stdout log4j.additivity.org.apache.cactus = false # Debug logs for HttpClient log4j.category.org.apache.commons.httpclient = DEBUG, cactus, stdout log4j.additivity.org.apache.commons.httpclient = false log4j.category.httpclient = WARN, cactus log4j.additivity.httpclient = false Jan Ok At 13:12 08.03.2004 +0100, you wrote: >I run it like this: > > public GetAnimalTagTester(String theName) { > super(theName); > } > > > public static void main(String[] theArgs) > { > new no.uio.nesys.util.Log4jInitializer().init(); > junit.swingui.TestRunner.main(new String[] > {GetAnimalTagTester.class.getName()}); > } > > >Do you need additional information? > >Jan Ok > > > >At 20:34 08.03.2004 +0900, you wrote: >>Hi Jan, >> >>In article <vali@example.com>, >>Mon, 08 Mar 2004 12:17:24 +0100, >>Jan Olav Kj|de <vali@example.com> wrote: >>j.o.kjode> I have made a simple JspTestCase (to test a tag) that doesn't >>work for some >>j.o.kjode> reason. >>j.o.kjode> Would be great if anyone could help.. >>j.o.kjode> I get a SocketException. >>[snip] >>j.o.kjode> DEBUG [TestRunner-Thread] (HttpConnection.java:931) - enter >> >>How did you run the test? >>I'm not sure what the TestRunner-Thread is. >> >>Regards, >>---- >>Kazuhito SUGURI >>mailto:vali@example.com >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: vali@example.com >>For additional commands, e-mail: vali@example.com > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: vali@example.com >For additional commands, e-mail: vali@example.com > From vali@example.com Thu Mar 11 12:27:38 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 82135 invoked from network); 11 Mar 2004 12:27:38 -0000 Received: from unknown (HELO hercules.kiala.com) (83.161.120.155) by daedalus.apache.org with SMTP; 11 Mar 2004 12:27:38 -0000 Received: from sandokan.lan.kiala.com (sandokan.lan.kiala.com [83.161.120.155]) by hercules.kiala.com (8.11.6/8.11.6) with SMTP id i2BCRaR05712 for <vali@example.com>; Thu, 11 Mar 2004 13:27:36 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C40764.391E90C8" Subject: How to output log4j statement in the console Date: Thu, 11 Mar 2004 13:27:30 +0100 Message-ID: <vali@example.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to output log4j statement in the console Thread-Index: AcQHZBg4CcICTcHiRnGTQ/UR+36d8A== From: "Stephane Nicoll" <vali@example.com> To: <vali@example.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C40764.391E90C8 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello list, I would like to output very important information to the console when I = run my cactus tests. Using simple Junit is ok, since it's done locally and = it's also a matter of configuration. What about the log4j statement I might = output in my tests? Is there a way to show them in the console (I am using maven and the = cactus plugin for maven). Thanks, St=E9phane ------_=_NextPart_001_01C40764.391E90C8-- From vali@example.com Thu Mar 11 16:05:54 2004 Return-Path: <vali@example.com> list-help: <mailto:vali@example.com> list-unsubscribe: <mailto:vali@example.com> List-Post: <mailto:vali@example.com> List-Id: <cactus-user.jakarta.apache.org> Mailing-List: contact vali@example.com; run by ezmlm Delivered-To: mailing list vali@example.com Received: (qmail 25761 invoked from network); 11 Mar 2004 16:05:54 -0000 Received: from unknown (HELO mail.logicline.de) (83.161.120.155) by daedalus.apache.org with SMTP; 11 Mar 2004 16:05:54 -0000 Received: from tp-tfrank.logicline.de (mail.logicline.de [83.161.120.155]) by mail.logicline.de (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id i2BFPMe15135 for <vali@example.com>; Thu, 11 Mar 2004 16:25:23 +0100 Message-Id: <vali@example.com> X-Sender: X-Mailer: QUALCOMM Windows Eudora Version 83.161.120.155 Date: Thu, 11 Mar 2004 17:06:27 +0100 To: vali@example.com From: Thorsten Frank <vali@example.com> Subject: missing cookie name Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N hi all, we're trying to test Struts actions with the StrutsTestCase package integrated into Cactus. All actions depend on a login, or more specific, parameters loaded after a successful login. our idea was to use a base class which stores a FormAuthentication object for all the test cases. We are using Websphere 5.0, struts 1.1, J2EE spec 1.3 Our problems seem to be similar to the one described in a previous mail of this list (no 04940): when trying the tests depicted further below, we get the following error messages: org.apache.cactus.util.ChainedRuntimeException: Failed to authenticate the vali@example.com.authenticate_aroundBody6(FormAuthentication.java:314) at org.apache.cactus.client.authentication.FormAuthentication.authenticate_aroundBody7$advice(FormAuthentication.java:151) at org.apache.cactus.client.authentication.FormAuthentication.authenticate(FormAuthentication.java) at org.apache.cactus.client.authentication.FormAuthentication.configure_aroundBody0(FormAuthentication.java:155) at org.apache.cactus.client.authentication.FormAuthentication.configure_aroundBody1$advice(FormAuthentication.java:151) at org.apache.cactus.client.authentication.FormAuthentication.configure(FormAuthentication.java) --- snip --- java.lang.NullPointerException:
{'source': 'Apache Software Foundation Public Mail Archives'}