Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 27052 invoked from network); 11 Oct 2006 02:50:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2006 02:50:08 -0000 Received: (qmail 38924 invoked by uid 500); 11 Oct 2006 02:50:01 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 38878 invoked by uid 500); 11 Oct 2006 02:50:00 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 38866 invoked by uid 99); 11 Oct 2006 02:50:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 19:50:00 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of robertlazarski@gmail.com designates 66.249.82.235 as permitted sender) Received: from [66.249.82.235] (HELO wx-out-0506.google.com) (66.249.82.235) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Oct 2006 19:50:00 -0700 Received: by wx-out-0506.google.com with SMTP id s8so81439wxc for ; Tue, 10 Oct 2006 19:49:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OoaEHiNH0HiRXL+oQLa3uGlfOESaV2oIW5Toq2c1vBMNcvAkCT5Q+6Spg4ydUCZ0G13tePglw2b13/afWajMSlKUhPx66uOyC81jnMtWNvSIBYXVV8KgI2YLbcom84ZzCpde2FpVyvL5UMv6CxE7rUiwqNcwSB4F7538OOA3SPw= Received: by 10.90.118.10 with SMTP id q10mr29239agc; Tue, 10 Oct 2006 19:49:39 -0700 (PDT) Received: by 10.90.66.4 with HTTP; Tue, 10 Oct 2006 19:49:39 -0700 (PDT) Message-ID: Date: Tue, 10 Oct 2006 23:49:39 -0300 From: "robert lazarski" To: axis-dev@ws.apache.org Subject: Re: [axis2] Spring support broken ????? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Its late here so I'll take a look tomorrow. In the meantime, the reason why this wasn't caught is because I'm not sure how to get a ServletContext from our testing environment or if its even possible. There are tests for the non-servlet container config. If someone knows how to test the former case please post to the list. I've been mostly focused on the latter lately, ie, non-servletContext config inside the AAR. Thanks for catching that Rajith. Robert On 10/10/06, Rajith Attapattu wrote: > Forwarding with the axis2 prefix. > > > ---------- Forwarded message ---------- > From: Rajith Attapattu > Date: Oct 10, 2006 10:17 PM > Subject: Re: Spring support broken ????? > To: axis-dev@ws.apache.org > Cc: saminda@wso2.com > > Hi All, > > The current spring support fails with the following exception possibly due > to the new code change of obtaining the servlet config from the > AxisConfiguration instead from the Message Context. > > Caused by: org.apache.axis2.AxisFault: Axis2 Can't find ServletConfig; > nested exception is: > java.lang.Exception: Axis2 Can't find ServletConfig > at > org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) > at > org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier.getServiceObject(SpringServletContextObjectSupplier.java:70) > ... 43 more > Caused by: java.lang.Exception: Axis2 Can't find ServletConfig > at > org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier.getServiceObject(SpringServletContextObjectSupplier.java:53) > ... 43 more > > Now when I look at the code I see that at revesion 426884 the code was > obtaining the servlet config from the msgContext. > > servletContext servletContext = (ServletContext) msgContext.getOptions(). > > getProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT); > > However the head revision was obtaining the servlet config via the > AxisConfiguration. > > ServletConfig servletConfig = (ServletConfig) > axisService.getAxisConfiguration() > > .getParameter(HTTPConstants.HTTP_SERVLETCONFIG); > if (servletConfig == null) { > throw new Exception("Axis2 Can't find ServletConfig"); > } > > Why did we make the change ??? If we did so are we making sure that we > populate the AxisConfiguration with the servlet config ? > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org