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 22449 invoked by uid 99); 29 Dec 2006 15:24:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 07:24:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Dec 2006 07:24:11 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H0JaI-0000Xn-L5 for cactus-user@jakarta.apache.org; Fri, 29 Dec 2006 07:23:50 -0800 Message-ID: <8088421.post@talk.nabble.com> Date: Fri, 29 Dec 2006 07:23:50 -0800 (PST) From: Nandan To: cactus-user@jakarta.apache.org Subject: Re: ClassNotFoundException: While running the test case using task In-Reply-To: <8079594.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: nandhakumar.gopalakaimal@bt.com References: <8079594.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org This issue has been resolved, I have used attribute to specify the local test classes. Nandan wrote: > > Hi > I am facing the following issues while testing a Portal application - At > present i have created a Servlet test case to test one of the servlet in > the application > > First i have manually modified the application and I could run the cactus > test case from the browser using the following url, > > > http://localhost:7001/<>/ServletTestRunner?suite=<> > &transform=yes > > But I need to automate the entire test. For that I have decided to use > ant task. First I cactified the ear and called the task > to run the tests. I have used and to invoke > the weblogic container and run the test cases respectively. > The error which I have got is as follows, > test: > [cactus] Testsuite: BTrackingTestCase > [cactus] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec > > [cactus] Null Test: Caused an ERROR > [cactus] BTrackingTestCase > [cactus] java.lang.ClassNotFoundException: BTrackingTestCase > [cactus] at > java.net.URLClassLoader$1.run(URLClassLoader.java:199) > [cactus] at java.security.AccessController.doPrivileged(Native > Method) > [cactus] at > java.net.URLClassLoader.findClass(URLClassLoader.java:187) > [cactus] at > java.lang.ClassLoader.loadClass(ClassLoader.java:289) > [cactus] at > java.lang.ClassLoader.loadClass(ClassLoader.java:235) > [cactus] at > java.lang.ClassLoader.loadClass(ClassLoader.java:235) > [cactus] at > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) > > [cactus] at java.lang.Class.forName0(Native Method) > [cactus] at java.lang.Class.forName(Class.java:219) > [cactus] at > org.apache.cactus.integration.ant.CactusTask.execute(CactusTa > sk.java:148) > [cactus] TEST BTrackingTestCase FAILED > [junitreport] Using Xalan version: Xalan Java 2.4.1 > [junitreport] Transform time: 328ms > > BUILD FAILED > Then , I have manually deployed the cactyfied ear and set the > 'cactus.contextURL' in the system classpath and removed > from the build.xml . Still I am getting the same error. > > Could you please give some suggestion to resolve this issue. -Thanks > Many Thanks, > -- View this message in context: http://www.nabble.com/ClassNotFoundException%3A-While-running-the-test-case-using-%3Ccactus%3E-task-tf2891982.html#a8088421 Sent from the Cactus - User mailing list archive at Nabble.com.