Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 81478 invoked from network); 20 Jan 2006 04:28:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jan 2006 04:28:55 -0000 Received: (qmail 60071 invoked by uid 500); 20 Jan 2006 04:28:45 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 60063 invoked by uid 500); 20 Jan 2006 04:28:45 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 60052 invoked by uid 99); 20 Jan 2006 04:28:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 20:28:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of davanum@gmail.com designates 66.249.82.204 as permitted sender) Received: from [66.249.82.204] (HELO xproxy.gmail.com) (66.249.82.204) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Jan 2006 20:28:42 -0800 Received: by xproxy.gmail.com with SMTP id t16so265638wxc for ; Thu, 19 Jan 2006 20:28:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KQk1Wc4qxrL/R69rQHpJU18Z4COrc1QO7bTXXaLUsakPpQOq/a5OW5TjnJXqQ6dZs4Gqk2gSvkTD5jJJpydse+gKNeHUmSBi/OZDafF07jNYeM1s4QsyQNNWx0byAPPEwhDa4f6jLBin8VWHvo44LUjpcTWYeEvTmFrBEVc3yX0= Received: by 10.11.122.72 with SMTP id u72mr19259cwc; Thu, 19 Jan 2006 20:28:21 -0800 (PST) Received: by 10.11.120.3 with HTTP; Thu, 19 Jan 2006 20:28:21 -0800 (PST) Message-ID: <19e0530f0601192028x73391a20vbf8df8071eed26f0@mail.gmail.com> Date: Thu, 19 Jan 2006 23:28:21 -0500 From: Davanum Srinivas Reply-To: dims@apache.org To: axis-user@ws.apache.org Subject: Re: [Axis2-0.94] Classpath for Axis code running inside an .aar? In-Reply-To: <006101c61d70$d01fb780$f501a8c0@Deepal> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <19e0530f0601180740m79fa27f2q6880a284f3f81e81@mail.gmail.com> <0bd701c61cb0$b925c580$c201a8c0@Deepal> <19e0530f0601190458g20349c0dq791233e89627235@mail.gmail.com> <006101c61d70$d01fb780$f501a8c0@Deepal> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N We had the exact same problem in Geronimo when GBeans are loaded: http://www.nabble.com/TCCL-in-doStart-t465585.html At least in Geronimo's case everyone agreed that the correct behavior was to set TCCL to the correct class loader around lifecycle methods. thanks, dims On 1/19/06, Deepal Jayasinghe wrote: > Hi dims; > > I did not mean that , all the resources in the aar file available to Serv= ice > (that is how I create service at deployment time) , the problem here is n= ot > that (if I understand correct). Spring trying to load some resources > (configuration file) and which does not have any idea about service class > loader eventhough resources are in that class loader. > > I can not find a way to fix this without giving Spring the service class > loader , but that we can not do that since that does not take class loade= r > and its internally used CCL. And that CCL is incapable of loading service > resources. > > hmmmmmmmmm > > Thanks, > Deepal > ................................................................ > ~Future is Open~ > > ----- Original Message ----- > From: "Davanum Srinivas" > To: > Sent: Thursday, January 19, 2006 6:58 PM > Subject: Re: [Axis2-0.94] Classpath for Axis code running inside an .aar? > > > Deepal, > > Service isolation does not mean that resources present in aar should > not be available to the services themselves. there is a hole, we need > to figure out how to fix it. > > thanks, > dims > > On 1/18/06, Deepal Jayasinghe wrote: > > hi dims; > > > > that s not a bug in Axis2 , to be fix , he is getting that error due to > > service isolation that's an Axis2 feature. > > > > Thanks, > > Deepal > > ................................................................ > > ~Future is Open~ > > > > ----- Original Message ----- > > From: "Davanum Srinivas" > > To: > > Sent: Wednesday, January 18, 2006 9:40 PM > > Subject: Re: [Axis2-0.94] Classpath for Axis code running inside an .aa= r? > > > > > > Please log a JIRA bug. Looks serious. > > > > thanks, > > dims > > > > On 1/18/06, Inigo Surguy wrote: > > > Hi, > > > > > > I've deployed a .aar to Axis 2, and I'm trying to use Spring within i= t. > > > However, when Spring tries to access it's applicationContext.xml file > > > from > > > the classpath, it doesn't work. When I try to access the classpath in= my > > > own > > > code, using MyObject.class.getResource() or > > > Thread.currentThread().getContextClassLoader().getResource(), I can't > > > find > > > the file either; and when I check the classloader roots of the curren= t > > > context classloader, it only shows Tomcat > > > 5.5\webapps\axis2_094\WEB-INF\classes - and not the .aar itself. > > > > > > When I move my applicationContext.xml to the Axis WEB-INF/classes > > > directory, > > > then Spring can find it, which is consistent with the behaviour above= . > > > However, it then can't load any of my application classes - presumabl= y > > > because they're not on the classpath available to my application. > > > > > > I can presumably solve this by moving all of my code into the Axis > > > WEB-INF/lib directory - but this defeats the point of having an .aar! > > > > > > What am I doing wrong, please? How can I get the contents of the .aar > > > onto > > > the classpath of classes within that .aar? > > > > > > (I'm running Axis 0.94 inside Tomcat 5.5.12 on Windows XP with JDK 1.= 5) > > > > > > Cheers > > > > > > Inigo > > > > > > > > > > > > > > > -- > > Davanum Srinivas : http://wso2.com/blogs/ > > > > > > > > > -- > Davanum Srinivas : http://wso2.com/blogs/ > > > -- Davanum Srinivas : http://wso2.com/blogs/