Return-Path: Delivered-To: apmail-jakarta-cactus-user-archive@www.apache.org Received: (qmail 91924 invoked from network); 11 Dec 2008 12:40:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Dec 2008 12:40:41 -0000 Received: (qmail 74288 invoked by uid 500); 11 Dec 2008 12:40:54 -0000 Delivered-To: apmail-jakarta-cactus-user-archive@jakarta.apache.org Received: (qmail 73991 invoked by uid 500); 11 Dec 2008 12:40:53 -0000 Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Cactus Users List" Reply-To: "Cactus Users List" Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 73980 invoked by uid 99); 11 Dec 2008 12:40:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2008 04:40:53 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of franzroth@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 11 Dec 2008 12:40:32 +0000 Received: (qmail invoked by alias); 11 Dec 2008 12:40:10 -0000 Received: from pD9E4C6A0.dip.t-dialin.net (EHLO [192.168.2.100]) [217.228.198.160] by mail.gmx.net (mp071) with SMTP; 11 Dec 2008 13:40:10 +0100 X-Authenticated: #6704461 X-Provags-ID: V01U2FsdGVkX1/562gEkS/5K8fih1XD11D2qaBfLMw/MrbUN3964D /5TYpKgtFcy7mV Message-ID: <49410A16.2010702@gmx.de> Date: Thu, 11 Dec 2008 13:39:50 +0100 From: Franz Roth Reply-To: franzroth@gmx.de User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: Cactus Users List Subject: Re: java.lang.NoSuchFieldError: config References: <94b3482b0812110423n2660aa3cl2c7fce68f0516963@mail.gmail.com> <00d601c95b8b$ef569360$ce03ba20$@villalba@fullsix.com> In-Reply-To: <00d601c95b8b$ef569360$ce03ba20$@villalba@fullsix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.52 X-Virus-Checked: Checked by ClamAV on apache.org Hi, yesterday I had the same but with the pageContext-Object; Well, there was an jar from gwt with some apache-classes inside (gwt-dev-windows.jar). Took that away and all worked fine :) -> check Your classpath. Greez Franz Ra�l Villalba schrieb: > Hi, > > I have the exactly error. Please help!!! > > -----Mensaje original----- > De: sach Beeharry [mailto:sachtruth@googlemail.com] > Enviado el: jueves, 11 de diciembre de 2008 13:23 > Para: cactus-user@jakarta.apache.org > Asunto: java.lang.NoSuchFieldError: config > > Hi, > > I am trying to test my action class using cactus. My web application is on > Tomcat and I am running the test from Eclipse. > But I am getting the following error when the test runs: > > java.lang.NoSuchFieldError: config > at > servletunit.struts.CactusStrutsTestCase.setUp(CactusStrutsTestCase.java:101) > at junit.framework.TestCase.runBare(TestCase.java:128) > at > org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCact > usTestCase.java:155) > at > org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTe > stCaller.java:120) > at > org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_ar > oundBody0(AbstractWebTestController.java:94) > at > org.apache.cactus.internal.server.AbstractWebTestController.handleRequest_ar > oundBody1$advice(AbstractWebTestController.java:218) > at > org.apache.cactus.internal.server.AbstractWebTestController.handleRequest(Ab > stractWebTestController.java:1) > > I think this error is caused because the *config* field cannot be found in > the setUp() method of the CactusStrutsTestCase class. May be some > compatibility issue. > > protected void setUp() > throws Exception > { > if(logger.isDebugEnabled()) > { > logger.debug("Entering"); > } > try > { > if(actionServlet == null) > { > actionServlet = new ActionServlet(); > } > ServletContext servletContext = new StrutsServletContextWrapper* > (config*.getServletContext()); > > also: > > *CactusStrutsTestCase extends ServletTestCase* and ServletTestCase contains > the attribute *public AbstractServletConfigWrapper config > * > >From the above the config field should normally be accessible, but it is > not the case. > > Can anyone help me solving this? > > Thanks in advance. > > Sach > > > --------------------------------------------------------------------- > 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