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 55484 invoked by uid 99); 4 Jan 2008 15:55:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 07:55:40 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [80.148.47.163] (HELO mail.wilken.de) (80.148.47.163) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2008 15:55:17 +0000 X-IronPort-AV: E=Sophos;i="4.24,245,1196636400"; d="scan'208,217";a="2336885" Received: from unknown (HELO [10.1.19.146]) ([10.1.19.146]) by mail.wilken.de with ESMTP; 04 Jan 2008 16:55:21 +0100 Message-ID: <477E5699.2060308@wilken.de> Date: Fri, 04 Jan 2008 16:54:01 +0100 From: =?ISO-8859-1?Q?Rene_D=F6ring?= User-Agent: Thunderbird 2.0.0.9 (X11/20071031) MIME-Version: 1.0 To: cactus-user@jakarta.apache.org Subject: Problem to run a Cactus test using Jetty integration Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello I'm using Cactus for the first time, so I have some difficulties to get it working. I want to test some servlets, therefore I'm using the Jetty integration. I try to run Cactus with Ant and my task looks something like this: [...] The only class which should be tested is the following: public class TestJettyAll extends TestCase { public static Test suite() { TestSuite suite = new TestSuite(); suite.addTestSuite(TestSLabel.class); return new JettyTestSetup(suite); } } And the TestSLabel class looks as follows (only to test whether it works or not): public class TestSLabel extends TestCase{ public void testSButton(){ int i=5; assertEquals(i,5); } } And now my problem. When I run the ant target, I receive the following output: Testcase: unknown took 0 sec Caused an ERROR org.mortbay.jetty.Server.addListener(java.lang.String) java.lang.NoSuchMethodException: org.mortbay.jetty.Server.addListener(java.lang.String) at java.lang.Class.getMethod(Class.java:1605) at org.apache.cactus.extension.jetty.JettyTestSetup.createServer(JettyTestSetup.java:361) at org.apache.cactus.extension.jetty.JettyTestSetup.setUp(JettyTestSetup.java:209) at org.apache.cactus.extension.jetty.JettyTestSetup$1.protect(JettyTestSetup.java:165) at org.apache.cactus.extension.jetty.JettyTestSetup.run_aroundBody0(JettyTestSetup.java:174) at org.apache.cactus.extension.jetty.JettyTestSetup.run_aroundBody1$advice(JettyTestSetup.java:224) at org.apache.cactus.extension.jetty.JettyTestSetup.run(JettyTestSetup.java) What is the problem? The org.mortbay.jetty.Server class is in the classpath. I have no idea how I can solve the problem :-( Is there anyone how can help me? Thanks Rene