You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by sarcott <sa...@gmail.com> on 2009/05/29 15:25:53 UTC
Re: More than 1 Spring .aar in Axis2
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 <pa...@kirona.com>
> 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.
Re: More than 1 Spring .aar in Axis2
Posted by robert lazarski <ro...@gmail.com>.
On Fri, Aug 28, 2009 at 5:46 PM, sarcott<sa...@gmail.com> wrote:
>
> Does any one know if a patch for this issue was made available?
>
> thanks,
> sarcott
>
>
imho there is no problem - it works as designed. "More than 1 Spring
.aar in Axis2" is supported and documented since 1.0. Is there a
particular need that the current support doesn't cover? If not, open a
jira and even better, submit patches.
- R
> iksrazal wrote:
>>
>> On Sun, May 31, 2009 at 4:18 PM, Andreas Veithen
>> <an...@gmail.com> wrote:
>>> If what you are saying is true, then the Spring support in Axis2 has a
>>> serious flaw and needs to be fixed...
>>>
>>> Andreas
>>
>> Patches are welcome.
>>
>> - R
>>
>>
>
> --
> View this message in context: http://www.nabble.com/More-than-1-Spring-.aar-in-Axis2-tp15505385p25196714.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
Re: More than 1 Spring .aar in Axis2
Posted by sarcott <sa...@gmail.com>.
Does any one know if a patch for this issue was made available?
thanks,
sarcott
iksrazal wrote:
>
> On Sun, May 31, 2009 at 4:18 PM, Andreas Veithen
> <an...@gmail.com> wrote:
>> If what you are saying is true, then the Spring support in Axis2 has a
>> serious flaw and needs to be fixed...
>>
>> Andreas
>
> Patches are welcome.
>
> - R
>
>
--
View this message in context: http://www.nabble.com/More-than-1-Spring-.aar-in-Axis2-tp15505385p25196714.html
Sent from the Axis - User mailing list archive at Nabble.com.
Re: More than 1 Spring .aar in Axis2
Posted by robert lazarski <ro...@gmail.com>.
On Sun, May 31, 2009 at 4:18 PM, Andreas Veithen
<an...@gmail.com> wrote:
> If what you are saying is true, then the Spring support in Axis2 has a
> serious flaw and needs to be fixed...
>
> Andreas
Patches are welcome.
- R
Re: More than 1 Spring .aar in Axis2
Posted by Andreas Veithen <an...@gmail.com>.
If what you are saying is true, then the Spring support in Axis2 has a
serious flaw and needs to be fixed...
Andreas
On Fri, May 29, 2009 at 16:02, robert lazarski <ro...@gmail.com> wrote:
> On Fri, May 29, 2009 at 10:25 AM, sarcott <sa...@gmail.com> wrote:
>>
>> 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
>>
>
> Please read the manual carefully - when you say "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" , that's the only way it can work. It
> doesn't make sense - and its not supported - to have a completely
> separate spring instance in each aar by using the same jar copy of
> spring in WEB-INF. So yes, you do need multiple copies of the spring
> jar in each war - that's the price you need to pay for it to work.
> BTW, you may not need the full 2.8 mb spring jar - they ship smaller
> jars supporting each feature set - ymmv.
>
> Best regards,
> Robert
>
Re: More than 1 Spring .aar in Axis2
Posted by robert lazarski <ro...@gmail.com>.
On Fri, May 29, 2009 at 10:25 AM, sarcott <sa...@gmail.com> wrote:
>
> 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
>
Please read the manual carefully - when you say "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" , that's the only way it can work. It
doesn't make sense - and its not supported - to have a completely
separate spring instance in each aar by using the same jar copy of
spring in WEB-INF. So yes, you do need multiple copies of the spring
jar in each war - that's the price you need to pay for it to work.
BTW, you may not need the full 2.8 mb spring jar - they ship smaller
jars supporting each feature set - ymmv.
Best regards,
Robert