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 10372 invoked by uid 99); 1 Jun 2007 06:54:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 23:54:23 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of paranoiabla@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 May 2007 23:54:18 -0700 Received: by an-out-0708.google.com with SMTP id d31so166037and for ; Thu, 31 May 2007 23:53:57 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kPisKYm8ykShboWpSKv/wQmKLaqnwFE0/ghZKZbUa1oQB+lkMJTLs3SwcBIH55AA+/dyxMme3Ip9uUmpthUP6+rk3tLluObWFb4Hp6dr+CyTcKy/HXT1p38CzbSxkIA5bQT3taGqnQxklP9dLUNy10e74nkxej0mMcO8HfyzVM0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=gE4Lc/AETPT1hYTVh6TvQleArby9Dzic4/woyfoZOJHEadbqJpc2ovkVF0i0w5Zpc9YRe0lS/B3R6QxFj/3sAaiYpLj10iZT9yQR135U8YK0rJeD7EioCFFzvaBGeweQBNPvem2azU9aYYawWH6trUdnOHst9qNcRnExB9mWAlA= Received: by 10.100.153.17 with SMTP id a17mr854824ane.1180680836207; Thu, 31 May 2007 23:53:56 -0700 (PDT) Received: by 10.100.33.13 with HTTP; Thu, 31 May 2007 23:53:56 -0700 (PDT) Message-ID: Date: Fri, 1 Jun 2007 09:53:56 +0300 From: "Petar Tahchiev" To: "Cactus Users List" Subject: Re: Error in loading the testcase In-Reply-To: <18fd332d0705312134o38be9bd9ke568d82990afe98d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2336_28196894.1180680836157" References: <18fd332d0705312134o38be9bd9ke568d82990afe98d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2336_28196894.1180680836157 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2007/6/1, Dheerendra Kulkarni : > Hi, > I am trying to run the testcase from Ant, > > My Ant file is as follows > > > > .... > > > > > > > > > > "${bin}/CactifiedEWSTests.war" > > > > > > > "yes" failureproperty="tests.failed" showoutput="yes"> > > > > "c:/tomcat/reports"/> > > > > > > > > > > > > > > > > .... > > > > > I am pasting the Ant output here > > Cactus-Test: > [war] Building war: C:\dev\EasyEWS\EWSTestAutomation\bin\EWSTests.war > [cactifywar] Analyzing war: > C:\dev\EasyEWS\EWSTestAutomation\bin\EWSTests.war > [cactifywar] Could not copy the JSP redirector (Resource > '/org/apache/cactus/server/jspRedirector.jsp' not found) > [cactifywar] Building war: > C:\dev\EasyEWS\EWSTestAutomation\bin\CactifiedEWSTests.war > [cactifywar] Warning: selected war files include a WEB-INF/web.xml which > will be ignored (please use webxml attribute to war task) > > [cactus] ----------------------------------------------------------------- > [cactus] Running tests against Tomcat 4.1.24 @ http://localhost:8000 > [cactus] ----------------------------------------------------------------- > > [cactus] Deleting 14 files from > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x > [cactus] Deleted 12 directories from > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x > [cactus] HttpConnector Opening server socket on all host IP addresses > [cactus] Starting service Tomcat-Standalone > [cactus] Apache Tomcat/4.1.24 > [cactus] HostConfig[localhost]: Expanding web application archive > CactifiedEWSTests.war > [cactus] StandardHost[localhost]: Installing web application at context path > /CactifiedEWSTests from URL > file:C:/DOCUME~1/DKULKA~1/LOCALS~1/Temp/cactus/tomcat4x/webapps/CactifiedEWSTests > [cactus] WebappLoader[/CactifiedEWSTests]: Deploying class repositories to > work directory C:\Documents and Settings\dkulkarni\Local > Settings\Temp\cactus\tomcat4x\work\Standalone\localhost\CactifiedEWSTests > [cactus] WebappLoader[/CactifiedEWSTests]: Deploy class files > /WEB-INF/classes to > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x\webapps\CactifiedEWSTests\WEB-INF\classes > [cactus] WebappLoader[/CactifiedEWSTests]: Deploy JAR > /WEB-INF/lib/aspectjrt.jar to > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x\webapps\CactifiedEWSTests\WEB-INF\lib\aspectjrt.jar > [cactus] WebappLoader[/CactifiedEWSTests]: Deploy JAR > /WEB-INF/lib/cactus.jar to > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x\webapps\CactifiedEWSTests\WEB-INF\lib\cactus.jar > [cactus] WebappLoader[/CactifiedEWSTests]: Deploy JAR /WEB-INF/lib/commons- > httpclient.jar to > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x\webapps\CactifiedEWSTests\WEB-INF\lib\commons- > httpclient.jar > [cactus] WebappLoader[/CactifiedEWSTests]: Deploy JAR /WEB-INF/lib/commons- > logging.jar to > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x\webapps\CactifiedEWSTests\WEB-INF\lib\commons- > logging.jar > [cactus] WebappLoader[/CactifiedEWSTests]: Deploy JAR /WEB-INF/lib/junit.jar > to > C:\DOCUME~1\DKULKA~1\LOCALS~1\Temp\cactus\tomcat4x\webapps\CactifiedEWSTests\WEB-INF\lib\junit.jar > [cactus] StandardManager[/CactifiedEWSTests]: Seeding random number > generator class java.security.SecureRandom > [cactus] StandardManager[/CactifiedEWSTests]: Seeding of random number > generator has been completed > [cactus] StandardWrapper[/CactifiedEWSTests:default]: Loading container > servlet default > [cactus] StandardWrapper[/CactifiedEWSTests:invoker]: Loading container > servlet invoker > [cactus] HttpConnector[8000] Starting background thread > [cactus] Running TestCases.TestSampleServlet > [cactus] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > [cactus] Test TestCases.TestSampleServlet FAILED > [cactus] Stopping service Tomcat-Standalone > [cactus] HttpConnector[8000] Stopping background thread > [cactus] StandardHost[localhost]: Removing web application at context path > /CactifiedEWSTests > > BUILD SUCCESSFUL > > And the c:/tomcat/reports/ cactus.output.txt has the following > > > Testsuite: TestCases.TestSampleServlet > Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > Caused an ERROR > TestCases.TestSampleServlet > java.lang.ClassNotFoundException: TestCases.TestSampleServlet > at java.net.URLClassLoader$1.run(URLClassLoader.java:199) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:187) > at java.lang.ClassLoader.loadClass(ClassLoader.java:289) > at java.lang.ClassLoader.loadClass(ClassLoader.java:235) > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:141) > at org.apache.cactus.integration.ant.CactusTask.executeInContainer( > CactusTask.java:458) > at org.apache.cactus.integration.ant.CactusTask.execute(CactusTask.java > :208) > > > Could some one help me finding out what the problem copuld be > > > regards > Dheerendra > Hi Dheerenda, I would guess that your war file wasn't cactified correctly. Just make sure the content of your war is correct, and if it isn't you can try and include the test-classes with: as in http://jakarta.apache.org/cactus/integration/ant/task_cactifywar.html Hope that helps. -- Regards, Petar! Karlovo, Bulgaria. Bulgarian medics in Libya are innocent! http://www.nestesami.bg/main/index.php Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 ------=_Part_2336_28196894.1180680836157--