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 44964 invoked from network); 13 Dec 2003 02:36:49 -0000 Received: from unknown (HELO elosmtp02.eloquent.com) (63.241.92.194) by daedalus.apache.org with SMTP; 13 Dec 2003 02:36:49 -0000 Received: by elosmtp02.eloquent.com with Internet Mail Service (5.5.2653.19) id ; Fri, 12 Dec 2003 18:37:52 -0800 Message-ID: From: Daniel Rabe To: Cactus Users List Subject: Accessing the servlet that's already running? Date: Fri, 12 Dec 2003 18:37:47 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3C122.18758670" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3C122.18758670 Content-Type: text/plain; charset="ISO-8859-1" There's something that I just don't get, and it's causing my brain to hurt. ;-) I hope someone can set me straight. I'm using Tomcat 5.0, Struts 1.1, and Cactus 1.5 on Windows XP. When I run the task from ant, it starts up Tomcat, which unpacks my cactified war, and starts my servlet, right? I *think* what I want to do is code my test (a subclass of ServletTestCase) so that I specify the request in my beginXX, and in endXX I want to sanity-check the output. What do I do in testXX? The examples I've seen show creation and initialization of a Servlet in textXX... but... but... my servlet's already instantiated and running, right? It seems like my testXX should be able to get a reference to that already-running servlet and just call doService() on it; however, I can't seem to get a reference to the servlet. What am I missing here? I know that my servlet has problems when I try to destroy it and re-instantiate it (because of statics in some legacy code we're using). Is this likely to cause problems anywhere other than in cactus-type testing? Thanks in advance, --DanR ------_=_NextPart_001_01C3C122.18758670--