Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 73103 invoked by uid 99); 16 Mar 2005 07:19:13 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FORGED_RCVD_HELO,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from phm.cmhb.cz (HELO phsnav.ad.cmhb.cz) (195.47.109.218) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 15 Mar 2005 23:19:13 -0800 Received: from PHSEX.ad.cmhb.cz ([192.168.3.82]) by phsnav.ad.cmhb.cz (SMSSMTP 4.1.0.19) with SMTP id M2005031608190928063 for ; Wed, 16 Mar 2005 08:19:09 +0100 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-2" Subject: RE: Cactus test and Struts Content-Transfer-Encoding: quoted-printable Date: Wed, 16 Mar 2005 08:19:09 +0100 Message-ID: <2B07C68615D2E4499B541696F20A96BA2BBC5F@PHSEX.ad.cmhb.cz> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Cactus test and Struts Thread-Index: AcUpp9UAz4zP+tvETgy0LFV0CF9tWQAT6/ug From: To: X-Virus-Checked: Checked It looks like your web-app wasn't successfuly deployed or cactifywar = wasn't call. Try to check log and also if your web.xml contains = something like this : ServletRedirector = org.apache.cactus.server.ServletTestRedirector ServletRedirector /ServletRedirector Dursik -----Original Message----- From: bryan hansen [mailto:bh5k@yahoo.com] Sent: Tuesday, March 15, 2005 10:41 PM To: cactus-user@jakarta.apache.org Subject: Cactus test and Struts We are using cactus to test some struts actions. I am getting an error and not sure what the cause is. BTW if somebody has found a better way to do this, I am open for suggestions. We simply add the URI that we want to request and the appropriate paramaters in the begin method: private void beginAction(WebRequest request) { request.addHeader("URI", "/lease/leaseSummary.do"); request.addParameter("command", "viewLease"); request.addParameter("itemId","1301"); request.addParameter("structureId", "1111"); =20 } We then access the action servlet: public void testAction() throws Exception { ActionServlet servlet =3D new ActionServlet(); servlet.init(config); UserSessionValues usv =3D new UserSessionValues(); session.setAttribute("userInfo", usv); =20 =20 servlet.doPost(request, response); =20 UserSessionValues usvSession =3D (UserSessionValues) request.getSession().getAttribute("userInfo"); =20 assertNotNull(usvSession); =20 =20 } The output from this test results in a bunch of debug code, but ultimately this: [cactus] 14:09:54,114 DEBUG wire: << "HTTP/1.1 404 Invalid path /ServletRedirector was requested[\r][\n]" I get the same error message on Tomcat and JBoss. Any ideas? Thanks, Bryan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around=20 http://mail.yahoo.com=20 --------------------------------------------------------------------- To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: cactus-user-help@jakarta.apache.org