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 47086 invoked from network); 3 Feb 2004 22:50:26 -0000 Received: from unknown (HELO qtechds1.qtech.com.au) (203.37.144.41) by daedalus.apache.org with SMTP; 3 Feb 2004 22:50:26 -0000 In-Reply-To: <20040203124904.11461.qmail@india.com> To: "Cactus Users List" Subject: Re: Help: Error during running cactus testclass MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0.2CF2 July 23, 2003 From: PUTHENVILA P Johnson Message-ID: Date: Wed, 4 Feb 2004 08:50:36 +1000 X-MIMETrack: Serialize by Router on qtechds1/Qtech Business Systems/AU(Release 6.5|September 18, 2003) at 04/02/2004 08:50:37, Serialize complete at 04/02/2004 08:50:37 Content-Type: multipart/alternative; boundary="=_alternative 007D53084A256E2F_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=_alternative 007D53084A256E2F_= Content-Type: text/plain; charset="US-ASCII" Hi Dinesh, It is the problem with ur classpath and also include the cactus.properties file dir in your classpath "not the file".You have to add the jar files comes along with cactus. Johnson "Dinesh N" 03/02/2004 10:49 PM Please respond to "Cactus Users List" To "'Cactus Users List'" cc Subject Help: Error during running cactus testclass Hi Friends, While Running Testcase, I am facing following problems,' 1) I had writing testcase for Cactus as bellow and Run it gives me an error as, " junit.framework.AssertionFailedError: Exception in constructor: testStringArrayJSPTest (java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpMethod" 2) If I add Lib File commons-httpclient-2.0-rc2.jar in classpath above error get removed and i got new one as, "org.apache.cactus.util.ChainedRuntimeException: Missing Cactus property [cactus.contextURL]" If I use the same compiled class file of code in classes folder of WEB-INF and tried to check. it gives Success as a result. Can you tell me Is there any problem in code..Or class path library problem? The Code I started with: import junit.framework.Test; import junit.framework.TestSuite; import org.apache.cactus.JspTestCase; import org.apache.cactus.WebRequest; import org.apache.cactus.WebResponse; public class StringArrayJSPTest extends JspTestCase { public void beginStringArrayJSPTest(WebRequest request){ } public StringArrayJSPTest() { super(); } public void testStringArrayJSPTest(){ try{ pageContext.include("/StringArrayJSP.jsp"); int mVal = ((StringArray)pageContext.getAttribute("stringArray1")).count(); System.out.println("This"+mVal); assertEquals("The Function should Add ELement Properly",3,mVal); } catch(Exception ex) { System.out.println("Exception: "+ ex.getMessage()); } } public void endStringArrayJSPTest(WebResponse responce){ } public void setUP(){ System.out.println("Before Test"); } public void tearDown(){ System.out.println("After Test"); } public static void main(String[] theArgs) { junit.awtui.TestRunner.main(new String[] {StringArrayJSPTest.class.getName()}); } public static Test suite() { return new TestSuite(StringArrayJSPTest.class); } } CAn anybody help me..? If possible please tell me how we are using client side lib file. Where we store those? Thanking You, Ragards, Ganesh N. -- India.com free e-mail - www.india.com. Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes! Powered by Outblaze --------------------------------------------------------------------- To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: cactus-user-help@jakarta.apache.org --=_alternative 007D53084A256E2F_=--