Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@www.apache.org Received: (qmail 94688 invoked from network); 6 Jan 2009 00:11:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2009 00:11:16 -0000 Received: (qmail 33606 invoked by uid 500); 6 Jan 2009 00:11:15 -0000 Delivered-To: apmail-jakarta-cactus-user-archive@jakarta.apache.org Received: (qmail 33586 invoked by uid 500); 6 Jan 2009 00:11:15 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 33571 invoked by uid 99); 6 Jan 2009 00:11:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 16:11:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [203.11.83.254] (HELO mail1.ardec.com.au) (203.11.83.254) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2009 00:11:09 +0000 Received: from optimus.ms.a2end.com (optimus.adl.ardec.com.au [192.168.1.70]) by mail1.ardec.com.au (8.14.1/8.14.1) with ESMTP id n060AaSe012418 for ; Tue, 6 Jan 2009 10:40:47 +1030 (CST) Received: from optimus.ms.a2end.com ([192.168.1.70]) by optimus.ms.a2end.com ([192.168.1.70]) with mapi; Tue, 6 Jan 2009 10:40:46 +1030 From: Nicole Luneburg To: Cactus Users List Date: Tue, 6 Jan 2009 10:40:44 +1030 Subject: RE: cactus junit authentication required? Thread-Topic: cactus junit authentication required? Thread-Index: AclvE7gEriabEF7zTuKeF0L+3nbXRwAe1dLgAABXIpA= Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: ClamAV 0.92/8836/Mon Jan 5 22:46:27 2009 on mizaru.adl.ardec.com.au X-Virus-Status: Clean X-SMTP-Vilter-Version: 1.3.6 X-Spamd-Symbols: ALL_TRUSTED,AWL,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-Virus-Checked: Checked by ClamAV on apache.org Hi Petar, Oops I only answered half your question. Should get a coffee before I start work in the morning ;) What I am doing is using the cactify war task to create a cactified war. This is what my build.xml ant target for that looks like: The "" part I understand puts in the servlet redirector= stuff into my web.xml like: ServletRedirector org.apache.cactus.server.ServletTestRedirector ServletRedirector /ServletRedirector I got all this from: http://jakarta.apache.org/cactus/writing/howto_security.html under "Step 2: Securing the Cactus Redirector" Step 1 talks about having to manually authenticate in the code but then Ste= p 2 says: "If you're using the Cactus Ant tasks to execute your Cactus tests, please = check the Cactifywar task page as the configuration below is only required = for manual configuration and is handled automatically by the Cactifywar tas= k." (also ... note my cactify war ant task in my build.xml did not put the "Ser= vletRedirectorSecure" stuff in my web.xml. Not sure how to do this even tho= ugh I tried to replace: With: I also tried putting this manually into the web.xml in the cactified war bu= t this still gave me the same error) I keep thinking that I shouldn't need to authenticate, but then I keep gett= ing the error: "java.lang.IllegalStateException: No valid security context for the caller = identity" ? -----Original Message----- From: Nicole Luneburg [mailto:Nicole.Luneburg@lisasoft.com] Sent: Tuesday, 6 January 2009 10:12 AM To: Cactus Users List Subject: RE: cactus junit authentication required? Hi Petar, Thanks for your reply. Sorry I thought I did say what exception I was getting ... " I'm running the test from my web browser like: http://localhost:8080/myapp/= ServletTestRunner?suite=3D myapp.tests.MyTestSuite&Cactus_Service=3DRUN_TES= T Doing this keeps giving me the following error: java.lang.IllegalStateException: No valid security context for the caller i= dentity " Thanks! Nicole -----Original Message----- From: Petar Tahchiev [mailto:paranoiabla@gmail.com] Sent: Monday, 5 January 2009 7:27 PM To: Cactus Users List Subject: Re: cactus junit authentication required? Hi Nicole, I would be really interested in you test-case and also the exact exception you get. Cheers, Petar. The contents of this email are confidential and may be subject to legal or = professional privilege and copyright. No representation is made that this e= mail is free of viruses or other defects. If you have received this communi= cation in error, you may not copy or distribute any part of it or otherwise= disclose its contents to anyone. Please advise the sender of your incorrec= t receipt of this correspondence. --------------------------------------------------------------------- To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: cactus-user-help@jakarta.apache.org The contents of this email are confidential and may be subject to legal or = professional privilege and copyright. No representation is made that this e= mail is free of viruses or other defects. If you have received this communi= cation in error, you may not copy or distribute any part of it or otherwise= disclose its contents to anyone. Please advise the sender of your incorrec= t receipt of this correspondence. --------------------------------------------------------------------- To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: cactus-user-help@jakarta.apache.org