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 86737 invoked by uid 99); 16 Mar 2005 17:05:48 -0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web30209.mail.mud.yahoo.com (HELO web30209.mail.mud.yahoo.com) (68.142.200.92) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 16 Mar 2005 09:05:47 -0800 Received: (qmail 88700 invoked by uid 60001); 16 Mar 2005 17:05:45 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=DLtOaWKIlVSOIalXM/zZwmHpigUZxRPNIOy+HsZdfjfeOX479V7gwpVPq3DQ6qP1pxDNQS+FuPzUj4agm9NyX2+FOIcJpV71EeLwfE7R0Pv+8tqfVMdyCvlzublKY7vt+F8/S4Znf21SoMrKTSNI604AjYXLKnHIGQaND89gg5g= ; Message-ID: <20050316170545.88698.qmail@web30209.mail.mud.yahoo.com> Received: from [12.110.19.97] by web30209.mail.mud.yahoo.com via HTTP; Wed, 16 Mar 2005 09:05:45 PST Date: Wed, 16 Mar 2005 09:05:45 -0800 (PST) From: bryan hansen Subject: RE: Cactus test and Struts To: Cactus Users List In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked I have: ServletRedirector org.apache.cactus.server.ServletTestRedirector JspRedirector /jspRedirector.jsp ServletRedirector /ServletRedirector JspRedirector /JspRedirector in the deployed cactus-war file. It is deploying correctly for both JBoss and Tomcat. I have actually started the server up for the cactus instance and it runs just fine. It just dies on my url. I would expect to see a struts error message if it wasn't finding the mapping in struts correctly. Thanks, Bryan --- basista.juraj@hypotecnibanka.cz wrote: > 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"); > } > > We then access the action servlet: > > public void testAction() throws Exception { > ActionServlet servlet = new ActionServlet(); > servlet.init(config); > UserSessionValues usv = new UserSessionValues(); > session.setAttribute("userInfo", usv); > > servlet.doPost(request, response); > > UserSessionValues usvSession = (UserSessionValues) > request.getSession().getAttribute("userInfo"); > > assertNotNull(usvSession); > > } > > > 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 > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > cactus-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > cactus-user-help@jakarta.apache.org > > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/