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 33259 invoked by uid 99); 16 Aug 2005 17:25:04 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 10:25:04 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [70.98.222.232] (HELO distribution.wasatchsolutions.com) (70.98.222.232) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 10:25:22 -0700 Received: from [192.168.0.4] ([::ffff:71.36.93.6]) (AUTH: PLAIN synath@synath.com) by distribution.wasatchsolutions.com with esmtp; Tue, 16 Aug 2005 11:37:22 -0600 id 00AFC0A3.43022453.0000710D Message-ID: <4302215C.5060900@synath.com> Date: Tue, 16 Aug 2005 11:24:44 -0600 From: David Turley User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Cactus Users List Subject: Re: ServletRedirector context References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Pedro, Thanks for the suggestion. That will help a lot with some of the other issues I'm having. It turns out that the problem was with my server.xml. I shouldn't really say it's "my" server.xml because someone else wrote it, hence the problem, but I should have caught it much earlier. They set the context docBase to a full path instead of a relative path, so it wasn't using the temp directory created by the cactus task. The context.xml suggestion will be very helpful because most of my coworkers use Windows and I use Linux, so everything is in different places. Thanks again for your help! --David Pedro Nevado wrote: >David, > >I do not use server.xml for my datasource connection: you can define it in a >context.xml file (ROOT.xml, p.e); so you do not need to change your >server.xml, or work with an ad-hoc server.xml, either. > >The URL I use for see test results in my browser is something like: > >http://localhost:8080/mycontext/ServletTestRunner?suite=com.myclassactiontes >t. > >In case you may find it useful, this is my ant script: > > > > > > classname="org.apache.cactus.integration.ant.RunServerTestsTask" > classpathref="cactus.tasks.path"/> > > > testurl="${cactus.contextURL}" > starttarget="start.tomcat5" > stoptarget="stop.tomcat5" > testtarget="testCactus"/> > > > > > haltonfailure="false" > fork="${junit.fork}" > errorproperty="test.failed" > failureproperty="test.failed" > > > > > > > > > > > > > > > > > /> > > > > > > > At least one test failed after making >report! > > > > failonerror="yes" fork="true"> > > > > > > > > includes="bin/bootstrap.jar"/> > > > > > > > > > > > > > > > > > > > >-----Mensaje original----- >De: David Turley [mailto:synath@synath.com] >Enviado el: martes, 16 de agosto de 2005 16:33 >Para: Cactus Users List >Asunto: Re: ServletRedirector context > > >Update: > >In the cactus ant task, I was specifying a server.xml file instead of >using the default. I did this because if I don't, I get the following >complaint: > > [cactus] java.lang.RuntimeException: Exception looking up data >source: Name jdbc is not bound in this Context > >But then the test redirectors initialize correctly and everything. It's >as if I have a choice between my jdbc connection and the test >redirectors working. What do I need to do to get both to work? By the >way, where is the "default" server.xml located? The server.xml I >specify is in TOMCAT_HOME/conf/... At first I thought that would be the >default, but apparently not. > >Once again, any help on this would be appreciated. The lack of help >thusfar has been discouraging, but I understand that you all have your >own lives and your own projects and don't give a rats behind about my >project ;-). > >Thanks, >David > > >David Turley wrote: > > > >>Correction: >>"I have tried to browse to that location and I get 404'd. If I browse >>to >>http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, >>however, I get a blank page. " I meant when I browse to >>http://localhost:8081/ServletRedirector?Cactus_Service=RUN_TEST, which >>lacks the /app, which is the context my application runs under. >> >>David Turley wrote: >> >> >> >>>More information about the problem: >>> >>>When trying to run the ant cactus task with ant debug mode on, after >>>the Tomcat starts up, I get the following repeatedly until it times out. >>> >>> [cactus] Checking if server is up ... >>> [cactus] Failed to connect to >>>[http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] >>>(Connection refused) >>> >>>Then I get the timeout message: >>>Failed to start the container after more than [180000] ms. Trying to >>>connect to the >>>[http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST] >>>test URL yielded a [-1] error code. Please run in debug mode for more >>>details about the error. >>> >>>I have tried to browse to that location and I get 404'd. If I browse >>>to >>>http://localhost:8081/app/ServletRedirector?Cactus_Service=RUN_TEST, >>>however, I get a blank page. >>> >>>I turned on cactus logging but didn't see anything new about the error. >>> >>>Anyone have any clues for me? Do you need more information to help >>>me? Let me know. >>> >>>Thanks, >>>David Turley >>> >>>--------------------------------------------------------------------- >>>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 >> >> >> > >--------------------------------------------------------------------- >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 > > >