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 48764 invoked by uid 99); 7 Jan 2008 15:40:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 07:40:14 -0800 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paranoiabla@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 15:39:48 +0000 Received: by wa-out-1112.google.com with SMTP id m38so12970584waf.5 for ; Mon, 07 Jan 2008 07:39:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Wk1mV+ctlYtkpUqtNILknjBj58av550JZVc3uRNPMMw=; b=pVk9cdvHkntyyz4SnvYjxSAFfKGtjrQv11MjS4HpmEqbOKJnr1yT+FLru0pqcJ0DLmpOZgCW107Rcp4K8CYctiNhxmhkh2Nu+emoGYCnXiT9KvkY52dHcVgmPzTT+uU7zAtbKt/8LpAKJwShHha+7dpZwcXSH2KQMX9hsdBpElY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=hdKS4Nne33P4qxAsDSkGO18GBToibildTwO1D64kn299Zm6XaRecTWuT0EOw33cesaDlR9VI2SCcR6i1DUPASqeDt/9lxTHfSsoFyTegHKGtzCqvXUf4qd009uv+NHYMgYKzMmqxYSKKpF1UYWmcZ9lu6nDtZF8JnFe5n+gsaI4= Received: by 10.114.153.18 with SMTP id a18mr1851406wae.82.1199720393138; Mon, 07 Jan 2008 07:39:53 -0800 (PST) Received: by 10.114.153.9 with HTTP; Mon, 7 Jan 2008 07:39:53 -0800 (PST) Message-ID: Date: Mon, 7 Jan 2008 17:39:53 +0200 From: "Petar Tahchiev" To: "Cactus Users List" Subject: Re: Problem to run a Cactus test using Jetty integration In-Reply-To: <4781DD06.7090807@wilken.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_49470_13687557.1199720393130" References: <477E5699.2060308@wilken.de> <4781DD06.7090807@wilken.de> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_49470_13687557.1199720393130 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Rene, It seems that the versions of Jetty >=3D 6 there is a gap in the API. Some of the methods that were in the Server class are now missing. And apparently one of them is addListener. Those methods were not deprecated, so I assume that they are just no longer supported. I am not sure if the Jetty integration will be available with the future versions of the Cactus project. 2008/1/7, Rene D=F6ring : > > Hello Petar > > I have used Jetty 6.1.7 which did not work. > Now, I try it with Jetty 5.1.14 and it works. That's fine for me. > > Regards > > Rene > > > Petar Tahchiev wrote: > > Hi Rene, > > > > can you please tell us what is the version of Jetty you are using? > > And can you try downgrading to, lets say Jetty 5? > > > > > > 2008/1/4, Rene D=F6ring : > > > >> Hello > >> > >> I'm using Cactus for the first time, so I have some difficulties to ge= t > >> it working. I want to test some servlets, therefore I'm using the Jett= y > >> integration. > >> > >> I try to run Cactus with Ant and my task looks something like this: > >> > >> >> printsummary=3D"yes" > >> showoutput=3D"true"> > >> > >> Dcactus.contextURL=3Dhttp://localhost:8989/test > >> "/> > >> > >> > >> "/> > >> >> location=3D"/home/.../lib/jetty-util-6.1.6rc0.jar"/> > >> > >> [...] > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> The only class which should be tested is the following: > >> > >> public class TestJettyAll extends TestCase > >> { > >> public static Test suite() > >> { > >> TestSuite suite =3D 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=3D5; > >> 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$advic= e > ( > >> 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 > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > >> For additional commands, e-mail: cactus-user-help@jakarta.apache.org > >> > >> > >> > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: cactus-user-help@jakarta.apache.org > > --=20 Regards, Petar! Karlovo, Bulgaria. EOOXML Objections http://www.grokdoc.net/index.php/EOOXML_objections Public PGP Key at: https://keyserver1.pgp.com/vkd/DownloadKey.event?keyid=3D0x19658550C3110611 Key Fingerprint: A369 A7EE 61BC 93A3 CDFF 55A5 1965 8550 C311 0611 ------=_Part_49470_13687557.1199720393130--