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 <[EMAIL PROTECTED]> wrote:
> Hi dims;
>
> I did not mean that , all the resources in the aar file available to Service
> (that is how I create service at deployment time) , the problem here is not
> 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 loader
> 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" <[EMAIL PROTECTED]>
> To: <axis-user@ws.apache.org>
> 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 <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> > To: <axis-user@ws.apache.org>
> > Sent: Wednesday, January 18, 2006 9:40 PM
> > Subject: Re: [Axis2-0.94] Classpath for Axis code running inside an .aar?
> >
> >
> > Please log a JIRA bug. Looks serious.
> >
> > thanks,
> > dims
> >
> > On 1/18/06, Inigo Surguy <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I've deployed a .aar to Axis 2, and I'm trying to use Spring within it.
> > > 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 current
> > > 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 - presumably
> > > 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/

Reply via email to