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 50856 invoked from network); 2 Apr 2003 10:38:47 -0000 Received: from pigeon.csd.abdn.ac.uk (139.133.200.15) by daedalus.apache.org with SMTP; 2 Apr 2003 10:38:47 -0000 Received: from HARMONIA.csd.abdn.ac.uk (harmonia [139.133.200.222]) by pigeon.csd.abdn.ac.uk (8.11.6p2/8.11.6) with ESMTP id h32Acna09552 for ; Wed, 2 Apr 2003 11:38:49 +0100 (BST) Message-Id: <5.2.0.9.0.20030402113652.01ce18b0@pigeon> X-Sender: bscharla@pigeon X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Wed, 02 Apr 2003 11:38:48 +0100 To: "Cactus Users List" From: Bruce Scharlau Subject: Re: using cactus and ant tasks In-Reply-To: <3E8ABC1A.1060309@gmx.de> References: <3E8AB738.3080409@aei.mpg.de> <3E8AB738.3080409@aei.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-30, required 5, BAYES_01, EMAIL_ATTRIBUTION, HTML_20_30, IN_REP_TO, NORMAL_HTTP_TO_IP, QUOTED_EMAIL_TEXT, REFERENCES, REPLY_WITH_QUOTES) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Jason, during your ant build copy the cactus.properties file across to build/classes so that it is in the classpath of the build and ant can read it properly. This seems to work ok for me. Bruce At 12:31 02/04/2003 +0200, you wrote: >Hello Jason, > >the cactus.contextURL property needs to be set on the client side. You >didn't include the 'test' target in the build fragments you posted, so we >can't really see what may be going wrong. However, a procedure that works >fairly well is to just pass the property as nested element >to the task. > >-chris > >Jason Novotny wrote: >>Hi, >> It seems downloading a nightly build fixed my problems with the >> cactus.properties and the HTML generation from the junit XSL stylesheet. >> It all works fine when I invoke the tests from my browser after manually >> starting TYomcat 4.1.18. Now I want to automate it all with Ant and I >> have the following: >> >> > if="catalina.exists" description="Run tests on Tomcat"> >> >> > >>testURL="http://127.0.0.1:8080/gridsphere/ServletRedirector?Cactus_Service=RUN_TEST" >> >> startTarget="start.tomcat" >> stopTarget="stop.tomcat" >> testTarget="test"/> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>But now after starting up I get this error: >>test: >> [junit] Running org.gridlab.gridsphere.GridSphereTest >> >> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.598 sec >> [junit] Testsuite: org.gridlab.gridsphere.GridSphereTest >> [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.598 sec >> >> [junit] Testcase: testPortletDescriptor took 0.551 sec >> [junit] Caused an ERROR >> [junit] Missing Cactus property [cactus.contextURL] >> [junit] org.apache.cactus.util.ChainedRuntimeException: Missing >> Cactus property [cactus.contextURL] >> [junit] at >> org.apache.cactus.configuration.BaseConfiguration.getContextURL(BaseConfiguration.java:208) >> >> [junit] at >> org.apache.cactus.configuration.AbstractWebConfiguration.getRedirectorURL$ajcPostAround6(AbstractWebConfiguration.java;org/apache/cactus/util/log/LogAspect.aj(1k):85) >> >> >> I also put cactus.properties in my WEB-INF/classes directory of my >> webapp but that doesn't help I guess. >> Thanks very much, Jason > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: cactus-user-help@jakarta.apache.org > cheers, Bruce Dr. Bruce Scharlau Dept. of Computing Science University of Aberdeen Aberdeen AB24 3UE 01224 272193 http://www.csd.abdn.ac.uk/~bscharla mailto:scharlau@csd.abdn.ac.uk