How about taking a copy of this one class and putting that in your service .aar file. I think that might work since each service will have its own classloader and so own copy of the ApplicationContextHolder. You could leave the spring libraries in WEB-INF/lib then?
-----Original Message----- From: robert lazarski [mailto:[email protected]] Sent: 21 January 2009 10:47 To: [email protected] Subject: Re: More than 1 Spring .aar in Axis2 On Wed, Jan 21, 2009 at 1:18 AM, Amila Suriarachchi <[email protected]> wrote: > I think the problem is with the > > org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder > > > public class ApplicationContextHolder implements > ApplicationContextAware { > > private static ApplicationContext appCtx; > > public ApplicationContextHolder() { > } > > /** Spring supplied interface method for injecting app context. */ > public void setApplicationContext(ApplicationContext applicationContext) > throws BeansException { > appCtx = applicationContext; > } > > /** Access to spring wired beans. */ > public static ApplicationContext getContext() { > return appCtx; > } > > } > > this class always keep the latest Application context which is used by > the object supplier. You may have to put the axis2-spring- .jar also > you your aar/lib folder instead of keeping it in WEB-INF/lib. > > thanks, > Amila. >> Absolutely true, the docs mention this. Robert __________ NOD32 3784 (20090121) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
