I tried this approach of making copies of the ApplicationContextHolder for every .AAR file and left the spring.jar and axis2-spring-1.4.1.jar in WEB-INF. I am still having the application context problem. The only way I was able to make the multiple aar files work was by moving the jar files in to the individual aar files.
Has anyone had success with mutilple applicationContextHolder? The spring.jar is 2.81 mb and we will be duplicating it in all the .aar files . Is there any other way to avoid this and still have the applicationContext work. thanks, Sarcott iksrazal wrote: > > On Wed, Jan 21, 2009 at 8:52 AM, Paul French <[email protected]> > wrote: >> 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? >> > > FYI, you can't do spring in the aar and still have any spring related > jars - springframework, axis2 or anything else - in WEB-INF. I tested > this alot when I wrote the code and it doesn't work any other way. > > - R > > -- View this message in context: http://www.nabble.com/More-than-1-Spring-.aar-in-Axis2-tp15505385p23779990.html Sent from the Axis - User mailing list archive at Nabble.com.
